diff --git a/src/ui/MAVLinkDecoder.cc b/src/ui/MAVLinkDecoder.cc index e957d8e5538cd6f863839bb14dafcecff53d96f3..a0571cc06b4bb983d29da2f1e4bc08f66f1d270f 100644 --- a/src/ui/MAVLinkDecoder.cc +++ b/src/ui/MAVLinkDecoder.cc @@ -4,6 +4,7 @@ MAVLinkDecoder::MAVLinkDecoder(MAVLinkProtocol* protocol, QObject *parent) : QThread() { + Q_UNUSED(parent); // We're doing it wrong - because the Qt folks got the API wrong: // http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/ moveToThread(this); diff --git a/src/ui/WaypointEditableView.cc b/src/ui/WaypointEditableView.cc index 11b2f78b6e406472fdcceba0e34c551c04fc8518..9c1bbf639b716baf00663dc8fd157907e9ac2297 100644 --- a/src/ui/WaypointEditableView.cc +++ b/src/ui/WaypointEditableView.cc @@ -38,8 +38,8 @@ WaypointEditableView::WaypointEditableView(Waypoint* wp, QWidget* parent) : QWidget(parent), - viewMode(QGC_WAYPOINTEDITABLEVIEW_MODE_DEFAULT), wp(wp), + viewMode(QGC_WAYPOINTEDITABLEVIEW_MODE_DEFAULT), m_ui(new Ui::WaypointEditableView) { m_ui->setupUi(this);