From 7e9905575581db6a296f78e83183834a857933d9 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 17 May 2014 13:25:46 +0200 Subject: [PATCH] Warning fixes --- src/ui/MAVLinkDecoder.cc | 1 + src/ui/WaypointEditableView.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/MAVLinkDecoder.cc b/src/ui/MAVLinkDecoder.cc index e957d8e55..a0571cc06 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 11b2f78b6..9c1bbf639 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); -- 2.22.0