1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-1170 Got rid of all compiler warning in Config Plugin

This commit is contained in:
m_thread 2014-02-26 17:17:37 +01:00
parent 14f2894464
commit a632b4ad06
12 changed files with 15 additions and 20 deletions

View File

@ -229,7 +229,7 @@ template<typename T, bool Align> inline void ei_conditional_aligned_delete(T *pt
template<typename Scalar, typename Integer>
inline static Integer ei_alignmentOffset(const Scalar* array, Integer size)
{
typedef typename ei_packet_traits<Scalar>::type Packet;
typedef typename ei_packet_traits<Scalar>::type Packet __attribute__ ((unused));
enum { PacketSize = ei_packet_traits<Scalar>::size,
PacketAlignedMask = PacketSize-1
};

View File

@ -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);
}

View File

@ -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);

View File

@ -214,6 +214,7 @@ void ConfigCCAttitudeWidget::openHelp()
void ConfigCCAttitudeWidget::setAccelFiltering(bool active)
{
Q_UNUSED(active);
setDirty(true);
}

View File

@ -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

View File

@ -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);

View File

@ -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();
}

View File

@ -1756,7 +1756,7 @@ Setup the flight mode channel on the RC Input tab if you have not done so alread
</widget>
</item>
<item row="1" column="2" rowspan="2">
<widget class="QFrame" name="frame">
<widget class="QFrame" name="frame1">
<property name="minimumSize">
<size>
<width>120</width>

View File

@ -272,16 +272,6 @@
</spacer>
</item>
</layout>
<zorder>GenerateCurve</zorder>
<zorder>CurveSettings</zorder>
<zorder>CurveType</zorder>
<zorder>CurveMin</zorder>
<zorder>minLabel</zorder>
<zorder>CurveMax</zorder>
<zorder>maxLabel</zorder>
<zorder>CurveStep</zorder>
<zorder>stepLabel</zorder>
<zorder>verticalSpacer</zorder>
</widget>
</item>
<item row="0" column="1">

View File

@ -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);

View File

@ -495,7 +495,7 @@ margin:1px;</string>
</widget>
</item>
<item row="1" column="11">
<widget class="QFrame" name="frame">
<widget class="QFrame" name="frame_1">
<property name="minimumSize">
<size>
<width>45</width>

View File

@ -24133,7 +24133,7 @@ border-radius: 5;</string>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="gridGroupBox">
<widget class="QGroupBox" name="gridGroupBox_1">
<property name="title">
<string>Cruise Control</string>
</property>