diff --git a/ground/openpilotgcs/src/libs/eigen/Eigen/src/Core/util/Memory.h b/ground/openpilotgcs/src/libs/eigen/Eigen/src/Core/util/Memory.h index eff86a23f..6c45b7e61 100644 --- a/ground/openpilotgcs/src/libs/eigen/Eigen/src/Core/util/Memory.h +++ b/ground/openpilotgcs/src/libs/eigen/Eigen/src/Core/util/Memory.h @@ -229,7 +229,7 @@ template inline void ei_conditional_aligned_delete(T *pt template inline static Integer ei_alignmentOffset(const Scalar* array, Integer size) { - typedef typename ei_packet_traits::type Packet; + typedef typename ei_packet_traits::type Packet __attribute__ ((unused)); enum { PacketSize = ei_packet_traits::size, PacketAlignedMask = PacketSize-1 }; diff --git a/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configcustomwidget.cpp b/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configcustomwidget.cpp index 020138ba3..05c0a4b1f 100644 --- a/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configcustomwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/configcustomwidget.cpp @@ -78,6 +78,7 @@ ConfigCustomWidget::~ConfigCustomWidget() void ConfigCustomWidget::setupUI(QString frameType) { + Q_UNUSED(frameType); Q_ASSERT(m_aircraft); } @@ -91,7 +92,9 @@ void ConfigCustomWidget::registerWidgets(ConfigTaskWidget &parent) } void ConfigCustomWidget::resetActuators(GUIConfigDataUnion *configData) -{} +{ + Q_UNUSED(configData); +} /** Helper function to refresh the UI widget values @@ -219,6 +222,7 @@ QString ConfigCustomWidget::updateConfigObjectsFromWidgets() */ bool ConfigCustomWidget::throwConfigError(int numMotors) { + Q_UNUSED(numMotors); return false; } @@ -265,6 +269,8 @@ SpinBoxDelegate::SpinBoxDelegate(QObject *parent) : QWidget *SpinBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const { + Q_UNUSED(option); + Q_UNUSED(index); QSpinBox *editor = new QSpinBox(parent); editor->setMinimum(-127); @@ -295,5 +301,6 @@ void SpinBoxDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, c void SpinBoxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const { + Q_UNUSED(index); editor->setGeometry(option.rect); } diff --git a/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/vehicleconfig.cpp b/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/vehicleconfig.cpp index d37a2ed74..545d81d75 100644 --- a/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/vehicleconfig.cpp +++ b/ground/openpilotgcs/src/plugins/config/cfg_vehicletypes/vehicleconfig.cpp @@ -86,7 +86,6 @@ void VehicleConfig::setConfigData(GUIConfigDataUnion configData) // get an instance of systemsettings SystemSettings *systemSettings = SystemSettings::GetInstance(getUAVObjectManager()); Q_ASSERT(systemSettings); - SystemSettings::DataFields systemSettingsData = systemSettings->getData(); UAVObjectField *guiConfig = systemSettings->getField("GUIConfigData"); Q_ASSERT(guiConfig); diff --git a/ground/openpilotgcs/src/plugins/config/configccattitudewidget.cpp b/ground/openpilotgcs/src/plugins/config/configccattitudewidget.cpp index 74e9ecaa5..e4429ab1d 100644 --- a/ground/openpilotgcs/src/plugins/config/configccattitudewidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configccattitudewidget.cpp @@ -214,6 +214,7 @@ void ConfigCCAttitudeWidget::openHelp() void ConfigCCAttitudeWidget::setAccelFiltering(bool active) { + Q_UNUSED(active); setDirty(true); } diff --git a/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp b/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp index 9f85cbf76..f898682ba 100644 --- a/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configrevowidget.cpp @@ -900,7 +900,6 @@ void ConfigRevoWidget::doStartNoiseMeasurement() HomeLocation *homeLocation = HomeLocation::GetInstance(getObjectManager()); Q_ASSERT(revoCalibration); Q_ASSERT(homeLocation); - RevoCalibration::DataFields revoCalibrationData = revoCalibration->getData(); HomeLocation::DataFields homeLocationData = homeLocation->getData(); // check if Homelocation is set diff --git a/ground/openpilotgcs/src/plugins/config/configstabilizationwidget.h b/ground/openpilotgcs/src/plugins/config/configstabilizationwidget.h index c2ae524b8..e4312df58 100644 --- a/ground/openpilotgcs/src/plugins/config/configstabilizationwidget.h +++ b/ground/openpilotgcs/src/plugins/config/configstabilizationwidget.h @@ -54,8 +54,8 @@ private: // Milliseconds between automatic 'Instant Updates' static const int AUTOMATIC_UPDATE_RATE = 500; - int m_pidBankCount; int boardModel; + int m_pidBankCount; int m_currentPIDBank; protected: QString mapObjectName(const QString objectName); diff --git a/ground/openpilotgcs/src/plugins/config/fancytabwidget.cpp b/ground/openpilotgcs/src/plugins/config/fancytabwidget.cpp index 998f5145e..a34d176e2 100644 --- a/ground/openpilotgcs/src/plugins/config/fancytabwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/fancytabwidget.cpp @@ -123,7 +123,6 @@ void FancyTabBar::mouseMoveEvent(QMouseEvent *e) m_hoverRect = QRect(); if (m_hoverIndex >= 0) { - QRect oldHoverRect = m_hoverRect; m_hoverRect = tabRect(m_hoverIndex); m_hoverControl.start(); } diff --git a/ground/openpilotgcs/src/plugins/config/input.ui b/ground/openpilotgcs/src/plugins/config/input.ui index aa3d1a7f4..b6a1f765e 100644 --- a/ground/openpilotgcs/src/plugins/config/input.ui +++ b/ground/openpilotgcs/src/plugins/config/input.ui @@ -1756,7 +1756,7 @@ Setup the flight mode channel on the RC Input tab if you have not done so alread - + 120 diff --git a/ground/openpilotgcs/src/plugins/config/mixercurve.ui b/ground/openpilotgcs/src/plugins/config/mixercurve.ui index cd47bd04e..37d8925ee 100644 --- a/ground/openpilotgcs/src/plugins/config/mixercurve.ui +++ b/ground/openpilotgcs/src/plugins/config/mixercurve.ui @@ -272,16 +272,6 @@ - GenerateCurve - CurveSettings - CurveType - CurveMin - minLabel - CurveMax - maxLabel - CurveStep - stepLabel - verticalSpacer diff --git a/ground/openpilotgcs/src/plugins/config/outputchannelform.h b/ground/openpilotgcs/src/plugins/config/outputchannelform.h index a669fc2f8..a537f55e7 100644 --- a/ground/openpilotgcs/src/plugins/config/outputchannelform.h +++ b/ground/openpilotgcs/src/plugins/config/outputchannelform.h @@ -56,10 +56,10 @@ signals: void channelChanged(int index, int value); private: + Ui::outputChannelForm ui; /// Channel index int m_index; bool m_inChannelTest; - Ui::outputChannelForm ui; private slots: void linkToggled(bool state); diff --git a/ground/openpilotgcs/src/plugins/config/outputchannelform.ui b/ground/openpilotgcs/src/plugins/config/outputchannelform.ui index 84ee3a2be..abe5d04dd 100644 --- a/ground/openpilotgcs/src/plugins/config/outputchannelform.ui +++ b/ground/openpilotgcs/src/plugins/config/outputchannelform.ui @@ -495,7 +495,7 @@ margin:1px; - + 45 diff --git a/ground/openpilotgcs/src/plugins/config/stabilization.ui b/ground/openpilotgcs/src/plugins/config/stabilization.ui index f89f15087..a4e85e8cb 100644 --- a/ground/openpilotgcs/src/plugins/config/stabilization.ui +++ b/ground/openpilotgcs/src/plugins/config/stabilization.ui @@ -24133,7 +24133,7 @@ border-radius: 5; - + Cruise Control