From 41cfbfabf59beeb505edc3688591ddecd392655c Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Wed, 24 Dec 2014 19:07:17 -0800 Subject: [PATCH] Fix compiler warnings --- src/AutoPilotPlugins/PX4/AirframeComponent.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/AirframeComponent.cc b/src/AutoPilotPlugins/PX4/AirframeComponent.cc index c9c40938d..bb52b9b3d 100644 --- a/src/AutoPilotPlugins/PX4/AirframeComponent.cc +++ b/src/AutoPilotPlugins/PX4/AirframeComponent.cc @@ -66,6 +66,8 @@ AirframeComponent::AirframeComponent(UASInterface* uas, AutoPilotPlugin* autopil PX4Component(uas, autopilot, parent), _name(tr("Airframe")) { + Q_UNUSED(mavTypeInfo); // Keeping this around for later use + // Validate that our mavTypeInfo array hasn't gotten out of sync Q_ASSERT(cMavTypes == MAV_TYPE_ENUM_END); @@ -94,7 +96,7 @@ AirframeComponent::AirframeComponent(UASInterface* uas, AutoPilotPlugin* autopil MAV_TYPE_VTOL_QUADROTOR }; - for (size_t i=0; i