From b69d6af862f869b69238410f29c28c306ecb3b98 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Wed, 9 Nov 2022 16:59:02 +0000 Subject: [PATCH] Fix unused variable warnings --- plugins/channelrx/demodais/aisdemodgui.cpp | 3 +++ plugins/channelrx/demodpager/pagerdemodgui.cpp | 3 +++ plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp | 3 +++ plugins/channelrx/radioclock/radioclockgui.cpp | 3 +++ plugins/feature/satellitetracker/satellitetrackergui.cpp | 8 ++++---- plugins/feature/satellitetracker/satellitetrackergui.h | 4 ++-- sdrgui/gui/scidoublespinbox.cpp | 2 ++ 7 files changed, 20 insertions(+), 6 deletions(-) diff --git a/plugins/channelrx/demodais/aisdemodgui.cpp b/plugins/channelrx/demodais/aisdemodgui.cpp index 6af436bd7..4099b0cb7 100644 --- a/plugins/channelrx/demodais/aisdemodgui.cpp +++ b/plugins/channelrx/demodais/aisdemodgui.cpp @@ -369,6 +369,9 @@ void AISDemodGUI::filter() void AISDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown) { + (void) widget; + (void) rollDown; + RollupContents *rollupContents = getRollupContents(); if (rollupContents->hasExpandableWidgets()) { diff --git a/plugins/channelrx/demodpager/pagerdemodgui.cpp b/plugins/channelrx/demodpager/pagerdemodgui.cpp index 2de372763..a52b659f7 100644 --- a/plugins/channelrx/demodpager/pagerdemodgui.cpp +++ b/plugins/channelrx/demodpager/pagerdemodgui.cpp @@ -418,6 +418,9 @@ void PagerDemodGUI::filter() void PagerDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown) { + (void) widget; + (void) rollDown; + RollupContents *rollupContents = getRollupContents(); if (rollupContents->hasExpandableWidgets()) { diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp b/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp index 2e6d07b2a..2ab5eb69c 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp @@ -475,6 +475,9 @@ void RadiosondeDemodGUI::filter() void RadiosondeDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown) { + (void) widget; + (void) rollDown; + RollupContents *rollupContents = getRollupContents(); if (rollupContents->hasExpandableWidgets()) { diff --git a/plugins/channelrx/radioclock/radioclockgui.cpp b/plugins/channelrx/radioclock/radioclockgui.cpp index 7637b725a..322c31559 100644 --- a/plugins/channelrx/radioclock/radioclockgui.cpp +++ b/plugins/channelrx/radioclock/radioclockgui.cpp @@ -209,6 +209,9 @@ void RadioClockGUI::on_timezone_currentIndexChanged(int index) void RadioClockGUI::onWidgetRolled(QWidget* widget, bool rollDown) { + (void) widget; + (void) rollDown; + RollupContents *rollupContents = getRollupContents(); if (rollupContents->hasExpandableWidgets()) { diff --git a/plugins/feature/satellitetracker/satellitetrackergui.cpp b/plugins/feature/satellitetracker/satellitetrackergui.cpp index fbdd203eb..850cdf96f 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.cpp +++ b/plugins/feature/satellitetracker/satellitetrackergui.cpp @@ -144,7 +144,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message) else if (SatelliteTrackerReport::MsgReportAOS::match(message)) { SatelliteTrackerReport::MsgReportAOS& aosReport = (SatelliteTrackerReport::MsgReportAOS&) message; - aos(aosReport.getName(), aosReport.getSpeech()); + aos(aosReport.getSpeech()); return true; } else if (SatelliteTrackerReport::MsgReportTarget::match(message)) @@ -156,7 +156,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message) else if (SatelliteTrackerReport::MsgReportLOS::match(message)) { SatelliteTrackerReport::MsgReportLOS& losReport = (SatelliteTrackerReport::MsgReportLOS&) message; - los(losReport.getName(), losReport.getSpeech()); + los(losReport.getSpeech()); return true; } else if (SatelliteTracker::MsgSatData::match(message)) @@ -400,7 +400,7 @@ void SatelliteTrackerGUI::onMenuDialogCalled(const QPoint &p) resetContextMenuType(); } -void SatelliteTrackerGUI::aos(const QString& name, const QString &speech) +void SatelliteTrackerGUI::aos(const QString &speech) { // Call plotChart() to start the periodic updates with sat position in polar chart plotChart(); @@ -410,7 +410,7 @@ void SatelliteTrackerGUI::aos(const QString& name, const QString &speech) } } -void SatelliteTrackerGUI::los(const QString& name, const QString &speech) +void SatelliteTrackerGUI::los(const QString &speech) { // Give speech notification of end of pass if (!speech.isEmpty()) { diff --git a/plugins/feature/satellitetracker/satellitetrackergui.h b/plugins/feature/satellitetracker/satellitetrackergui.h index 63f5830ae..477c8fe09 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.h +++ b/plugins/feature/satellitetracker/satellitetrackergui.h @@ -111,8 +111,8 @@ private: explicit SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr); virtual ~SatelliteTrackerGUI(); - void aos(const QString& name, const QString &speech); - void los(const QString& name, const QString &speech); + void aos(const QString &speech); + void los(const QString &speech); void blockApplySettings(bool block); void applySettings(bool force = false); diff --git a/sdrgui/gui/scidoublespinbox.cpp b/sdrgui/gui/scidoublespinbox.cpp index 21b904881..f9267a5d7 100644 --- a/sdrgui/gui/scidoublespinbox.cpp +++ b/sdrgui/gui/scidoublespinbox.cpp @@ -29,6 +29,8 @@ double SciDoubleSpinBox::valueFromText(const QString &text) const QValidator::State SciDoubleSpinBox::validate(QString &input, int &pos) const { + (void) pos; + bool ok; input.toDouble(&ok); if (ok) {