From 5f56bf7a04da21b2edb2d230cf59ba8479bebb31 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 28 Oct 2014 11:19:23 -0700 Subject: [PATCH] Fix release build compiler warnings --- src/ui/px4_configuration/PX4RCCalibration.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/px4_configuration/PX4RCCalibration.cc b/src/ui/px4_configuration/PX4RCCalibration.cc index 980de5983..f65b1de98 100644 --- a/src/ui/px4_configuration/PX4RCCalibration.cc +++ b/src/ui/px4_configuration/PX4RCCalibration.cc @@ -565,6 +565,8 @@ void PX4RCCalibration::_saveFlapsDown(void) void PX4RCCalibration::_inputFlapsUp(enum rcCalFunctions function, int channel, int value) { + Q_UNUSED(function); + // FIXME: Duplication Q_ASSERT(function == rcCalFunctionFlaps); @@ -770,7 +772,7 @@ void PX4RCCalibration::_spektrumBind(void) bindTypeMsg.setWindowTitle(tr("Spektrum Bind")); bindTypeMsg.setText(tr("Place Spektrum satellite receiver in bind mode. Select which mode below.")); - int bindType; + int bindType = 0; if (bindTypeMsg.exec() != QMessageBox::Cancel) { if (bindTypeMsg.clickedButton() == dsm2Mode) { bindType = 0; -- 2.22.0