diff --git a/src/ui/px4_configuration/PX4RCCalibration.cc b/src/ui/px4_configuration/PX4RCCalibration.cc index 980de59837c51ced3fbd69b1e5b22f91a8157acb..f65b1de98519f2be019bd447204df9ccf5c46be8 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;