From a56e7570034cafc3dfe4eb73885761bac03e2105 Mon Sep 17 00:00:00 2001 From: peabody124 Date: Tue, 21 Sep 2010 16:37:59 +0000 Subject: [PATCH] Ground: Supress a few warnings. A drop in a bucket... git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1704 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/plugins/coreplugin/iuavgadget.h | 4 ++-- ground/src/plugins/coreplugin/iuavgadgetfactory.h | 2 +- .../plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp | 1 + .../src/plugins/coreplugin/uavgadgetmanager/uavgadgetview.cpp | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ground/src/plugins/coreplugin/iuavgadget.h b/ground/src/plugins/coreplugin/iuavgadget.h index e9c7bc941..404c53bfd 100644 --- a/ground/src/plugins/coreplugin/iuavgadget.h +++ b/ground/src/plugins/coreplugin/iuavgadget.h @@ -62,9 +62,9 @@ public: virtual IUAVGadgetConfiguration *activeConfiguration() { return 0; } virtual void loadConfiguration(IUAVGadgetConfiguration*) { } - virtual void saveState(QSettings* qSettings) { } + virtual void saveState(QSettings* /*qSettings*/) { } virtual void restoreState(QByteArray) { } - virtual void restoreState(QSettings* qSettings) { } + virtual void restoreState(QSettings* /*qSettings*/) { } public slots: virtual void configurationChanged(IUAVGadgetConfiguration* ) { } virtual void configurationAdded(IUAVGadgetConfiguration*) { } diff --git a/ground/src/plugins/coreplugin/iuavgadgetfactory.h b/ground/src/plugins/coreplugin/iuavgadgetfactory.h index f62f19fbb..692d99094 100644 --- a/ground/src/plugins/coreplugin/iuavgadgetfactory.h +++ b/ground/src/plugins/coreplugin/iuavgadgetfactory.h @@ -55,7 +55,7 @@ public: virtual IUAVGadget *createGadget(QWidget *parent) = 0; virtual IUAVGadgetConfiguration *createConfiguration(const QByteArray &/*state*/) { return 0; } - virtual IUAVGadgetConfiguration *createConfiguration(QSettings* qSettings) { return 0; } + virtual IUAVGadgetConfiguration *createConfiguration(QSettings* /*qSettings*/) { return 0; } virtual IOptionsPage *createOptionsPage(IUAVGadgetConfiguration */*config*/) { return 0; } QString classId() const { return m_classId; } QString name() const { return m_name; } diff --git a/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp b/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp index d47e692b6..fd51e7e67 100644 --- a/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp +++ b/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp @@ -157,6 +157,7 @@ UAVGadgetManagerPrivate::UAVGadgetManagerPrivate(ICore *core, QWidget *parent) : m_core(core), m_coreListener(0) { + Q_UNUSED(parent); } UAVGadgetManagerPrivate::~UAVGadgetManagerPrivate() diff --git a/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetview.cpp b/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetview.cpp index f222200dd..fdee3f34a 100644 --- a/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetview.cpp +++ b/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetview.cpp @@ -523,6 +523,8 @@ void SplitterOrView::split(Qt::Orientation orientation) } void SplitterOrView::onSplitterMoved( int pos, int index ) { + Q_UNUSED(pos); + Q_UNUSED(index); // Update when the splitter is actually moved. m_sizes = m_splitter->sizes(); }