From 7574cb23d41194f388ffe80b4d9c0efb1158f991 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 13 Nov 2018 08:51:14 +0100 Subject: [PATCH] Windows: MSVC2017: fixed more attribute unused cases (2) --- devices/perseus/deviceperseus.h | 2 +- plugins/channeltx/modssb/ssbmodgui.cpp | 2 +- plugins/channeltx/modwfm/wfmmod.cpp | 9 ++++-- plugins/channeltx/modwfm/wfmmodgui.cpp | 7 ++-- plugins/channeltx/udpsource/udpsource.cpp | 9 ++++-- plugins/channeltx/udpsource/udpsourcegui.cpp | 12 ++++--- .../bladerf1output/bladerf1output.cpp | 12 ++++--- .../bladerf2output/bladerf2output.cpp | 15 ++++++--- plugins/samplesink/filesink/filesinkgui.cpp | 3 +- .../samplesink/filesink/filesinkoutput.cpp | 6 ++-- .../samplesink/hackrfoutput/hackrfoutput.cpp | 12 ++++--- .../limesdroutput/limesdroutput.cpp | 15 ++++++--- .../limesdroutput/limesdroutputthread.h | 2 +- .../plutosdroutput/plutosdroutput.cpp | 15 ++++++--- .../plutosdroutput/plutosdroutputgui.cpp | 3 +- .../plutosdroutput/plutosdroutputthread.h | 2 +- .../sdrdaemonsink/sdrdaemonsinkgui.cpp | 9 ++++-- .../sdrdaemonsink/sdrdaemonsinkgui.h | 2 +- .../sdrdaemonsink/sdrdaemonsinkoutput.cpp | 15 ++++++--- .../sdrdaemonsink/sdrdaemonsinkoutput.h | 2 +- .../soapysdroutput/soapysdroutput.cpp | 2 +- plugins/samplesource/airspy/airspyinput.cpp | 15 ++++++--- .../samplesource/airspyhf/airspyhfinput.cpp | 15 ++++++--- .../bladerf1input/bladerf1input.cpp | 12 ++++--- .../bladerf2input/bladerf2input.cpp | 15 ++++++--- plugins/samplesource/fcdpro/fcdprogui.cpp | 5 +-- plugins/samplesource/fcdpro/fcdproinput.cpp | 15 ++++++--- .../samplesource/fcdproplus/fcdproplusgui.cpp | 2 +- .../fcdproplus/fcdproplusinput.cpp | 12 ++++--- .../samplesource/filesource/filesourcegui.cpp | 3 +- .../filesource/filesourceinput.cpp | 15 ++++++--- .../samplesource/hackrfinput/hackrfinput.cpp | 12 ++++--- .../limesdrinput/limesdrinput.cpp | 15 ++++++--- .../limesdrinput/limesdrinputthread.h | 2 +- plugins/samplesource/perseus/perseusinput.cpp | 15 ++++++--- .../samplesource/perseus/perseusthread.cpp | 3 +- .../plutosdrinput/plutosdrinput.cpp | 15 ++++++--- .../plutosdrinput/plutosdrinputgui.cpp | 2 +- .../plutosdrinput/plutosdrinputthread.h | 2 +- plugins/samplesource/rtlsdr/rtlsdrinput.cpp | 15 ++++++--- .../sdrdaemonsource/sdrdaemonsourcegui.cpp | 12 ++++--- .../sdrdaemonsource/sdrdaemonsourceinput.cpp | 18 +++++++---- plugins/samplesource/sdrplay/sdrplayinput.cpp | 15 ++++++--- .../soapysdrinput/soapysdrinput.cpp | 7 ++-- .../samplesource/testsource/testsourcegui.cpp | 6 ++-- .../testsource/testsourceinput.cpp | 12 ++++--- sdrbase/dsp/decimatorsu.h | 4 +-- sdrbase/dsp/dspengine.cpp | 32 ++++++++++++------- 48 files changed, 295 insertions(+), 157 deletions(-) diff --git a/devices/perseus/deviceperseus.h b/devices/perseus/deviceperseus.h index 1ac30fcdb..47d8a38c5 100644 --- a/devices/perseus/deviceperseus.h +++ b/devices/perseus/deviceperseus.h @@ -32,7 +32,7 @@ public: protected: DevicePerseus(); DevicePerseus(const DevicePerseus&) : m_nbDevices(0) {} - DevicePerseus& operator=(const DevicePerseus& other __attribute__((unused))) { return *this; } + DevicePerseus& operator=(const DevicePerseus& other) { (void) other; return *this; } ~DevicePerseus(); private: diff --git a/plugins/channeltx/modssb/ssbmodgui.cpp b/plugins/channeltx/modssb/ssbmodgui.cpp index 81e88d9b0..85d13da29 100644 --- a/plugins/channeltx/modssb/ssbmodgui.cpp +++ b/plugins/channeltx/modssb/ssbmodgui.cpp @@ -341,7 +341,7 @@ void SSBModGUI::on_navTimeSlider_valueChanged(int value) } } -void SSBModGUI::on_showFileDialog_clicked(bool checked __attribute__((unused))) +void SSBModGUI::on_showFileDialog_clicked(bool checked) { (void) checked; QString fileName = QFileDialog::getOpenFileName(this, diff --git a/plugins/channeltx/modwfm/wfmmod.cpp b/plugins/channeltx/modwfm/wfmmod.cpp index 916781f0d..dcf34a040 100644 --- a/plugins/channeltx/modwfm/wfmmod.cpp +++ b/plugins/channeltx/modwfm/wfmmod.cpp @@ -546,8 +546,9 @@ bool WFMMod::deserialize(const QByteArray& data) int WFMMod::webapiSettingsGet( SWGSDRangel::SWGChannelSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setWfmModSettings(new SWGSDRangel::SWGWFMModSettings()); response.getWfmModSettings()->init(); webapiFormatChannelSettings(response, m_settings); @@ -558,8 +559,9 @@ int WFMMod::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, SWGSDRangel::SWGChannelSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; WFMModSettings settings = m_settings; bool channelizerChange = false; @@ -657,8 +659,9 @@ int WFMMod::webapiSettingsPutPatch( int WFMMod::webapiReportGet( SWGSDRangel::SWGChannelReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setWfmModReport(new SWGSDRangel::SWGWFMModReport()); response.getWfmModReport()->init(); webapiFormatChannelReport(response); diff --git a/plugins/channeltx/modwfm/wfmmodgui.cpp b/plugins/channeltx/modwfm/wfmmodgui.cpp index b5cf6d6c2..eeef938ef 100644 --- a/plugins/channeltx/modwfm/wfmmodgui.cpp +++ b/plugins/channeltx/modwfm/wfmmodgui.cpp @@ -254,8 +254,9 @@ void WFMModGUI::on_navTimeSlider_valueChanged(int value) } } -void WFMModGUI::on_showFileDialog_clicked(bool checked __attribute__((unused))) +void WFMModGUI::on_showFileDialog_clicked(bool checked) { + (void) checked; QString fileName = QFileDialog::getOpenFileName(this, tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog); @@ -275,8 +276,10 @@ void WFMModGUI::configureFileName() m_wfmMod->getInputMessageQueue()->push(message); } -void WFMModGUI::onWidgetRolled(QWidget* widget __attribute__((unused)), bool rollDown __attribute__((unused))) +void WFMModGUI::onWidgetRolled(QWidget* widget, bool rollDown) { + (void) widget; + (void) rollDown; } void WFMModGUI::onMenuDialogCalled(const QPoint &p) diff --git a/plugins/channeltx/udpsource/udpsource.cpp b/plugins/channeltx/udpsource/udpsource.cpp index 38b25e946..809919927 100644 --- a/plugins/channeltx/udpsource/udpsource.cpp +++ b/plugins/channeltx/udpsource/udpsource.cpp @@ -599,8 +599,9 @@ bool UDPSource::deserialize(const QByteArray& data) int UDPSource::webapiSettingsGet( SWGSDRangel::SWGChannelSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setUdpSourceSettings(new SWGSDRangel::SWGUDPSourceSettings()); response.getUdpSourceSettings()->init(); webapiFormatChannelSettings(response, m_settings); @@ -611,8 +612,9 @@ int UDPSource::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, SWGSDRangel::SWGChannelSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; UDPSourceSettings settings = m_settings; bool frequencyOffsetChanged = false; @@ -700,8 +702,9 @@ int UDPSource::webapiSettingsPutPatch( int UDPSource::webapiReportGet( SWGSDRangel::SWGChannelReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setUdpSourceReport(new SWGSDRangel::SWGUDPSourceReport()); response.getUdpSourceReport()->init(); webapiFormatChannelReport(response); diff --git a/plugins/channeltx/udpsource/udpsourcegui.cpp b/plugins/channeltx/udpsource/udpsourcegui.cpp index fefa33893..08ad2942a 100644 --- a/plugins/channeltx/udpsource/udpsourcegui.cpp +++ b/plugins/channeltx/udpsource/udpsourcegui.cpp @@ -316,8 +316,9 @@ void UDPSourceGUI::on_localUDPPort_editingFinished() ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }"); } -void UDPSourceGUI::on_sampleRate_textEdited(const QString& arg1 __attribute__((unused))) +void UDPSourceGUI::on_sampleRate_textEdited(const QString& arg1) { + (void) arg1; bool ok; Real inputSampleRate = ui->sampleRate->text().toDouble(&ok); @@ -332,8 +333,9 @@ void UDPSourceGUI::on_sampleRate_textEdited(const QString& arg1 __attribute__((u ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }"); } -void UDPSourceGUI::on_rfBandwidth_textEdited(const QString& arg1 __attribute__((unused))) +void UDPSourceGUI::on_rfBandwidth_textEdited(const QString& arg1) { + (void) arg1; bool ok; Real rfBandwidth = ui->rfBandwidth->text().toDouble(&ok); @@ -353,8 +355,9 @@ void UDPSourceGUI::on_rfBandwidth_textEdited(const QString& arg1 __attribute__(( ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }"); } -void UDPSourceGUI::on_fmDeviation_textEdited(const QString& arg1 __attribute__((unused))) +void UDPSourceGUI::on_fmDeviation_textEdited(const QString& arg1) { + (void) arg1; bool ok; int fmDeviation = ui->fmDeviation->text().toInt(&ok); @@ -369,8 +372,9 @@ void UDPSourceGUI::on_fmDeviation_textEdited(const QString& arg1 __attribute__(( ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }"); } -void UDPSourceGUI::on_amModPercent_textEdited(const QString& arg1 __attribute__((unused))) +void UDPSourceGUI::on_amModPercent_textEdited(const QString& arg1) { + (void) arg1; bool ok; int amModPercent = ui->amModPercent->text().toInt(&ok); diff --git a/plugins/samplesink/bladerf1output/bladerf1output.cpp b/plugins/samplesink/bladerf1output/bladerf1output.cpp index 75d15f593..17fbecbb0 100644 --- a/plugins/samplesink/bladerf1output/bladerf1output.cpp +++ b/plugins/samplesink/bladerf1output/bladerf1output.cpp @@ -535,8 +535,9 @@ bool Bladerf1Output::applySettings(const BladeRF1OutputSettings& settings, bool int Bladerf1Output::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setBladeRf1OutputSettings(new SWGSDRangel::SWGBladeRF1OutputSettings()); response.getBladeRf1OutputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -560,8 +561,9 @@ int Bladerf1Output::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; BladeRF1OutputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -607,8 +609,9 @@ int Bladerf1Output::webapiSettingsPutPatch( int Bladerf1Output::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -616,8 +619,9 @@ int Bladerf1Output::webapiRunGet( int Bladerf1Output::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesink/bladerf2output/bladerf2output.cpp b/plugins/samplesink/bladerf2output/bladerf2output.cpp index 8ebec2a37..db0b52f82 100644 --- a/plugins/samplesink/bladerf2output/bladerf2output.cpp +++ b/plugins/samplesink/bladerf2output/bladerf2output.cpp @@ -900,8 +900,9 @@ int BladeRF2Output::getNbChannels() int BladeRF2Output::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setBladeRf2OutputSettings(new SWGSDRangel::SWGBladeRF2OutputSettings()); response.getBladeRf2OutputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -912,8 +913,9 @@ int BladeRF2Output::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; BladeRF2OutputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -957,8 +959,9 @@ int BladeRF2Output::webapiSettingsPutPatch( return 200; } -int BladeRF2Output::webapiReportGet(SWGSDRangel::SWGDeviceReport& response, QString& errorMessage __attribute__((unused))) +int BladeRF2Output::webapiReportGet(SWGSDRangel::SWGDeviceReport& response, QString& errorMessage) { + (void) errorMessage; response.setBladeRf2OutputReport(new SWGSDRangel::SWGBladeRF2OutputReport()); response.getBladeRf2OutputReport()->init(); webapiFormatDeviceReport(response); @@ -1019,8 +1022,9 @@ void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp int BladeRF2Output::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -1028,8 +1032,9 @@ int BladeRF2Output::webapiRunGet( int BladeRF2Output::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesink/filesink/filesinkgui.cpp b/plugins/samplesink/filesink/filesinkgui.cpp index c05d525c0..9e2327276 100644 --- a/plugins/samplesink/filesink/filesinkgui.cpp +++ b/plugins/samplesink/filesink/filesinkgui.cpp @@ -284,8 +284,9 @@ void FileSinkGui::on_startStop_toggled(bool checked) } } -void FileSinkGui::on_showFileDialog_clicked(bool checked __attribute__((unused))) +void FileSinkGui::on_showFileDialog_clicked(bool checked) { + (void) checked; QString fileName = QFileDialog::getSaveFileName(this, tr("Save I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog); diff --git a/plugins/samplesink/filesink/filesinkoutput.cpp b/plugins/samplesink/filesink/filesinkoutput.cpp index d73747c1a..602812ec8 100644 --- a/plugins/samplesink/filesink/filesinkoutput.cpp +++ b/plugins/samplesink/filesink/filesinkoutput.cpp @@ -318,8 +318,9 @@ void FileSinkOutput::applySettings(const FileSinkSettings& settings, bool force) int FileSinkOutput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -327,8 +328,9 @@ int FileSinkOutput::webapiRunGet( int FileSinkOutput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesink/hackrfoutput/hackrfoutput.cpp b/plugins/samplesink/hackrfoutput/hackrfoutput.cpp index 3ae7437b1..00f0137cd 100644 --- a/plugins/samplesink/hackrfoutput/hackrfoutput.cpp +++ b/plugins/samplesink/hackrfoutput/hackrfoutput.cpp @@ -463,8 +463,9 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc int HackRFOutput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setHackRfOutputSettings(new SWGSDRangel::SWGHackRFOutputSettings()); response.getHackRfOutputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -475,8 +476,9 @@ int HackRFOutput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; HackRFOutputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -531,8 +533,9 @@ void HackRFOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re int HackRFOutput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -540,8 +543,9 @@ int HackRFOutput::webapiRunGet( int HackRFOutput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesink/limesdroutput/limesdroutput.cpp b/plugins/samplesink/limesdroutput/limesdroutput.cpp index a166d488c..09c8fd387 100644 --- a/plugins/samplesink/limesdroutput/limesdroutput.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutput.cpp @@ -1102,8 +1102,9 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo int LimeSDROutput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setLimeSdrOutputSettings(new SWGSDRangel::SWGLimeSdrOutputSettings()); response.getLimeSdrOutputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -1114,8 +1115,9 @@ int LimeSDROutput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; LimeSDROutputSettings settings = m_settings; if (deviceSettingsKeys.contains("antennaPath")) { @@ -1179,8 +1181,9 @@ int LimeSDROutput::webapiSettingsPutPatch( int LimeSDROutput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setLimeSdrOutputReport(new SWGSDRangel::SWGLimeSdrOutputReport()); response.getLimeSdrOutputReport()->init(); webapiFormatDeviceReport(response); @@ -1207,8 +1210,9 @@ void LimeSDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r int LimeSDROutput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -1216,8 +1220,9 @@ int LimeSDROutput::webapiRunGet( int LimeSDROutput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesink/limesdroutput/limesdroutputthread.h b/plugins/samplesink/limesdroutput/limesdroutputthread.h index 2761f45d5..ec5c4a5c8 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputthread.h +++ b/plugins/samplesink/limesdroutput/limesdroutputthread.h @@ -39,7 +39,7 @@ public: virtual void startWork(); virtual void stopWork(); - virtual void setDeviceSampleRate(int __attribute__((unused)) sampleRate) {} + virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; } virtual bool isRunning() { return m_running; } void setLog2Interpolation(unsigned int log2_ioterp); diff --git a/plugins/samplesink/plutosdroutput/plutosdroutput.cpp b/plugins/samplesink/plutosdroutput/plutosdroutput.cpp index 3c81a79a2..54157a930 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutput.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutput.cpp @@ -549,8 +549,9 @@ float PlutoSDROutput::getTemperature() int PlutoSDROutput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -558,8 +559,9 @@ int PlutoSDROutput::webapiRunGet( int PlutoSDROutput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -575,8 +577,9 @@ int PlutoSDROutput::webapiRun( int PlutoSDROutput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setPlutoSdrOutputSettings(new SWGSDRangel::SWGPlutoSdrOutputSettings()); response.getPlutoSdrOutputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -587,8 +590,9 @@ int PlutoSDROutput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; PlutoSDROutputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -648,8 +652,9 @@ int PlutoSDROutput::webapiSettingsPutPatch( int PlutoSDROutput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setPlutoSdrOutputReport(new SWGSDRangel::SWGPlutoSdrOutputReport()); response.getPlutoSdrOutputReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp index 731240c46..4d96665e6 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp @@ -129,8 +129,9 @@ bool PlutoSDROutputGUI::deserialize(const QByteArray& data) } } -bool PlutoSDROutputGUI::handleMessage(const Message& message __attribute__((unused))) +bool PlutoSDROutputGUI::handleMessage(const Message& message) { + (void) message; if (PlutoSDROutput::MsgConfigurePlutoSDR::match(message)) { const PlutoSDROutput::MsgConfigurePlutoSDR& cfg = (PlutoSDROutput::MsgConfigurePlutoSDR&) message; diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputthread.h b/plugins/samplesink/plutosdroutput/plutosdroutputthread.h index 45f80e218..080b093bb 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputthread.h +++ b/plugins/samplesink/plutosdroutput/plutosdroutputthread.h @@ -37,7 +37,7 @@ public: virtual void startWork(); virtual void stopWork(); - virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {} + virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; } virtual bool isRunning() { return m_running; } void setLog2Interpolation(unsigned int log2_interp); diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp index c2607530f..b7eb7e9ff 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp @@ -391,8 +391,9 @@ void SDRdaemonSinkGui::on_dataPort_returnPressed() sendSettings(); } -void SDRdaemonSinkGui::on_apiApplyButton_clicked(bool checked __attribute__((unused))) +void SDRdaemonSinkGui::on_apiApplyButton_clicked(bool checked) { + (void) checked; m_settings.m_apiAddress = ui->apiAddress->text(); bool apiOk; @@ -410,8 +411,9 @@ void SDRdaemonSinkGui::on_apiApplyButton_clicked(bool checked __attribute__((unu m_networkManager->get(m_networkRequest); } -void SDRdaemonSinkGui::on_dataApplyButton_clicked(bool checked __attribute__((unused))) +void SDRdaemonSinkGui::on_dataApplyButton_clicked(bool checked) { + (void) checked; m_settings.m_dataAddress = ui->dataAddress->text(); bool dataOk; @@ -434,8 +436,9 @@ void SDRdaemonSinkGui::on_startStop_toggled(bool checked) } } -void SDRdaemonSinkGui::on_eventCountsReset_clicked(bool checked __attribute__((unused))) +void SDRdaemonSinkGui::on_eventCountsReset_clicked(bool checked) { + (void) checked; m_countUnrecoverable = 0; m_countRecovered = 0; m_time.start(); diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.h b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.h index 314be9314..4204dfc16 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.h +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.h @@ -81,7 +81,7 @@ public: void resetToDefaults(); virtual qint64 getCenterFrequency() const { return m_deviceCenterFrequency; } - virtual void setCenterFrequency(qint64 centerFrequency __attribute__((unused))) {} + virtual void setCenterFrequency(qint64 centerFrequency) { (void) centerFrequency; } QByteArray serialize() const; bool deserialize(const QByteArray& data); virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.cpp b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.cpp index 0403c80c2..2e9c39e0c 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.cpp +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.cpp @@ -306,8 +306,9 @@ void SDRdaemonSinkOutput::applySettings(const SDRdaemonSinkSettings& settings, b int SDRdaemonSinkOutput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -315,8 +316,9 @@ int SDRdaemonSinkOutput::webapiRunGet( int SDRdaemonSinkOutput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -332,8 +334,9 @@ int SDRdaemonSinkOutput::webapiRun( int SDRdaemonSinkOutput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setSdrDaemonSinkSettings(new SWGSDRangel::SWGSDRdaemonSinkSettings()); response.getSdrDaemonSinkSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -344,8 +347,9 @@ int SDRdaemonSinkOutput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; SDRdaemonSinkSettings settings = m_settings; if (deviceSettingsKeys.contains("sampleRate")) { @@ -391,8 +395,9 @@ int SDRdaemonSinkOutput::webapiSettingsPutPatch( int SDRdaemonSinkOutput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setSdrDaemonSinkReport(new SWGSDRangel::SWGSDRdaemonSinkReport()); response.getSdrDaemonSinkReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.h b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.h index 741c6d1bd..93ce45d5e 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.h +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkoutput.h @@ -136,7 +136,7 @@ public: virtual const QString& getDeviceDescription() const; virtual int getSampleRate() const; virtual quint64 getCenterFrequency() const; - virtual void setCenterFrequency(qint64 centerFrequency __attribute__((unused))) {} + virtual void setCenterFrequency(qint64 centerFrequency) { (void) centerFrequency; } std::time_t getStartingTimeStamp() const; virtual bool handleMessage(const Message& message); diff --git a/plugins/samplesink/soapysdroutput/soapysdroutput.cpp b/plugins/samplesink/soapysdroutput/soapysdroutput.cpp index bda2be9e1..17fb49e20 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutput.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutput.cpp @@ -599,7 +599,7 @@ QByteArray SoapySDROutput::serialize() const return m_settings.serialize(); } -bool SoapySDROutput::deserialize(const QByteArray& data __attribute__((unused))) +bool SoapySDROutput::deserialize(const QByteArray& data) { bool success = true; diff --git a/plugins/samplesource/airspy/airspyinput.cpp b/plugins/samplesource/airspy/airspyinput.cpp index 7ec2f68f3..111ea4dcc 100644 --- a/plugins/samplesource/airspy/airspyinput.cpp +++ b/plugins/samplesource/airspy/airspyinput.cpp @@ -594,8 +594,9 @@ struct airspy_device *AirspyInput::open_airspy_from_sequence(int sequence) int AirspyInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -603,8 +604,9 @@ int AirspyInput::webapiRunGet( int AirspyInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -620,8 +622,9 @@ int AirspyInput::webapiRun( int AirspyInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setAirspySettings(new SWGSDRangel::SWGAirspySettings()); response.getAirspySettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -632,8 +635,9 @@ int AirspyInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; AirspySettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -702,8 +706,9 @@ int AirspyInput::webapiSettingsPutPatch( int AirspyInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setAirspyReport(new SWGSDRangel::SWGAirspyReport()); response.getAirspyReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/airspyhf/airspyhfinput.cpp b/plugins/samplesource/airspyhf/airspyhfinput.cpp index 1cadfcc39..25b16b437 100644 --- a/plugins/samplesource/airspyhf/airspyhfinput.cpp +++ b/plugins/samplesource/airspyhf/airspyhfinput.cpp @@ -486,8 +486,9 @@ airspyhf_device_t *AirspyHFInput::open_airspyhf_from_serial(const QString& seria int AirspyHFInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings()); response.getAirspyHfSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -498,8 +499,9 @@ int AirspyHFInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; AirspyHFSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -570,8 +572,9 @@ void AirspyHFInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo int AirspyHFInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setAirspyHfReport(new SWGSDRangel::SWGAirspyHFReport()); response.getAirspyHfReport()->init(); webapiFormatDeviceReport(response); @@ -580,8 +583,9 @@ int AirspyHFInput::webapiReportGet( int AirspyHFInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -589,8 +593,9 @@ int AirspyHFInput::webapiRunGet( int AirspyHFInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesource/bladerf1input/bladerf1input.cpp b/plugins/samplesource/bladerf1input/bladerf1input.cpp index 1791772c9..f21349624 100644 --- a/plugins/samplesource/bladerf1input/bladerf1input.cpp +++ b/plugins/samplesource/bladerf1input/bladerf1input.cpp @@ -609,8 +609,9 @@ bladerf_lna_gain Bladerf1Input::getLnaGain(int lnaGain) int Bladerf1Input::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setBladeRf1InputSettings(new SWGSDRangel::SWGBladeRF1InputSettings()); response.getBladeRf1InputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -644,8 +645,9 @@ int Bladerf1Input::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; BladeRF1InputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -706,8 +708,9 @@ int Bladerf1Input::webapiSettingsPutPatch( int Bladerf1Input::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -715,8 +718,9 @@ int Bladerf1Input::webapiRunGet( int Bladerf1Input::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesource/bladerf2input/bladerf2input.cpp b/plugins/samplesource/bladerf2input/bladerf2input.cpp index 577c4a323..e2c46c04a 100644 --- a/plugins/samplesource/bladerf2input/bladerf2input.cpp +++ b/plugins/samplesource/bladerf2input/bladerf2input.cpp @@ -967,8 +967,9 @@ bool BladeRF2Input::applySettings(const BladeRF2InputSettings& settings, bool fo int BladeRF2Input::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setBladeRf2InputSettings(new SWGSDRangel::SWGBladeRF2InputSettings()); response.getBladeRf2InputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -979,8 +980,9 @@ int BladeRF2Input::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; BladeRF2InputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -1039,8 +1041,9 @@ int BladeRF2Input::webapiSettingsPutPatch( return 200; } -int BladeRF2Input::webapiReportGet(SWGSDRangel::SWGDeviceReport& response, QString& errorMessage __attribute__((unused))) +int BladeRF2Input::webapiReportGet(SWGSDRangel::SWGDeviceReport& response, QString& errorMessage) { + (void) errorMessage; response.setBladeRf2InputReport(new SWGSDRangel::SWGBladeRF2InputReport()); response.getBladeRf2InputReport()->init(); webapiFormatDeviceReport(response); @@ -1123,8 +1126,9 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo int BladeRF2Input::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -1132,8 +1136,9 @@ int BladeRF2Input::webapiRunGet( int BladeRF2Input::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesource/fcdpro/fcdprogui.cpp b/plugins/samplesource/fcdpro/fcdprogui.cpp index 20920db13..6928742b1 100644 --- a/plugins/samplesource/fcdpro/fcdprogui.cpp +++ b/plugins/samplesource/fcdpro/fcdprogui.cpp @@ -209,7 +209,7 @@ bool FCDProGui::deserialize(const QByteArray& data) } } -bool FCDProGui::handleMessage(const Message& message __attribute__((unused))) +bool FCDProGui::handleMessage(const Message& message) { if (FCDProInput::MsgConfigureFCDPro::match(message)) { @@ -434,8 +434,9 @@ void FCDProGui::on_gain6_currentIndexChanged(int index) sendSettings(); } -void FCDProGui::on_setDefaults_clicked(bool checked __attribute__((unused))) +void FCDProGui::on_setDefaults_clicked(bool checked) { + (void) checked; m_settings.m_lnaGainIndex = 8; // +15 dB //m_settings.rfFilterIndex = 0; m_settings.m_mixerGainIndex = 1; // +12 dB diff --git a/plugins/samplesource/fcdpro/fcdproinput.cpp b/plugins/samplesource/fcdpro/fcdproinput.cpp index 5059a79fd..03f1ec662 100644 --- a/plugins/samplesource/fcdpro/fcdproinput.cpp +++ b/plugins/samplesource/fcdpro/fcdproinput.cpp @@ -493,8 +493,9 @@ void FCDProInput::set_center_freq(double freq) } -void FCDProInput::set_bias_t(bool on __attribute__((unused))) +void FCDProInput::set_bias_t(bool on) { + (void) on; //quint8 cmd = on ? 1 : 0; // TODO: use FCD Pro controls @@ -749,8 +750,9 @@ void FCDProInput::set_lo_ppm() int FCDProInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -758,8 +760,9 @@ int FCDProInput::webapiRunGet( int FCDProInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -775,8 +778,9 @@ int FCDProInput::webapiRun( int FCDProInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setFcdProSettings(new SWGSDRangel::SWGFCDProSettings()); response.getFcdProSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -787,8 +791,9 @@ int FCDProInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; FCDProSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { diff --git a/plugins/samplesource/fcdproplus/fcdproplusgui.cpp b/plugins/samplesource/fcdproplus/fcdproplusgui.cpp index 210bb4752..e557f160a 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusgui.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusgui.cpp @@ -127,7 +127,7 @@ bool FCDProPlusGui::deserialize(const QByteArray& data) } } -bool FCDProPlusGui::handleMessage(const Message& message __attribute__((unused))) +bool FCDProPlusGui::handleMessage(const Message& message) { if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message)) { diff --git a/plugins/samplesource/fcdproplus/fcdproplusinput.cpp b/plugins/samplesource/fcdproplus/fcdproplusinput.cpp index a15a0819e..be4902914 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusinput.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusinput.cpp @@ -460,8 +460,9 @@ void FCDProPlusInput::set_lo_ppm() int FCDProPlusInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -469,8 +470,9 @@ int FCDProPlusInput::webapiRunGet( int FCDProPlusInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -486,8 +488,9 @@ int FCDProPlusInput::webapiRun( int FCDProPlusInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setFcdProPlusSettings(new SWGSDRangel::SWGFCDProPlusSettings()); response.getFcdProPlusSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -498,8 +501,9 @@ int FCDProPlusInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; FCDProPlusSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { diff --git a/plugins/samplesource/filesource/filesourcegui.cpp b/plugins/samplesource/filesource/filesourcegui.cpp index f19e500dd..700065a27 100644 --- a/plugins/samplesource/filesource/filesourcegui.cpp +++ b/plugins/samplesource/filesource/filesourcegui.cpp @@ -310,8 +310,9 @@ void FileSourceGui::on_navTimeSlider_valueChanged(int value) } } -void FileSourceGui::on_showFileDialog_clicked(bool checked __attribute__((unused))) +void FileSourceGui::on_showFileDialog_clicked(bool checked) { + (void) checked; QString fileName = QFileDialog::getOpenFileName(this, tr("Open I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog); diff --git a/plugins/samplesource/filesource/filesourceinput.cpp b/plugins/samplesource/filesource/filesourceinput.cpp index 74f0b4c26..c68d3bbd1 100644 --- a/plugins/samplesource/filesource/filesourceinput.cpp +++ b/plugins/samplesource/filesource/filesourceinput.cpp @@ -409,8 +409,9 @@ bool FileSourceInput::applySettings(const FileSourceSettings& settings, bool for int FileSourceInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setFileSourceSettings(new SWGSDRangel::SWGFileSourceSettings()); response.getFileSourceSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -421,8 +422,9 @@ int FileSourceInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; FileSourceSettings settings = m_settings; if (deviceSettingsKeys.contains("fileName")) { @@ -450,8 +452,9 @@ int FileSourceInput::webapiSettingsPutPatch( int FileSourceInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -459,8 +462,9 @@ int FileSourceInput::webapiRunGet( int FileSourceInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -476,8 +480,9 @@ int FileSourceInput::webapiRun( int FileSourceInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setFileSourceReport(new SWGSDRangel::SWGFileSourceReport()); response.getFileSourceReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/hackrfinput/hackrfinput.cpp b/plugins/samplesource/hackrfinput/hackrfinput.cpp index 744119e0c..2e0dc8dc9 100644 --- a/plugins/samplesource/hackrfinput/hackrfinput.cpp +++ b/plugins/samplesource/hackrfinput/hackrfinput.cpp @@ -528,8 +528,9 @@ bool HackRFInput::applySettings(const HackRFInputSettings& settings, bool force) int HackRFInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setHackRfInputSettings(new SWGSDRangel::SWGHackRFInputSettings()); response.getHackRfInputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -540,8 +541,9 @@ int HackRFInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; HackRFInputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -628,8 +630,9 @@ void HackRFInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res int HackRFInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -637,8 +640,9 @@ int HackRFInput::webapiRunGet( int HackRFInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesource/limesdrinput/limesdrinput.cpp b/plugins/samplesource/limesdrinput/limesdrinput.cpp index 45add7cdd..bcd8dee34 100644 --- a/plugins/samplesource/limesdrinput/limesdrinput.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinput.cpp @@ -1280,8 +1280,9 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc int LimeSDRInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setLimeSdrInputSettings(new SWGSDRangel::SWGLimeSdrInputSettings()); response.getLimeSdrInputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -1292,8 +1293,9 @@ int LimeSDRInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; LimeSDRInputSettings settings = m_settings; if (deviceSettingsKeys.contains("antennaPath")) { @@ -1409,8 +1411,9 @@ void LimeSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re int LimeSDRInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setLimeSdrInputReport(new SWGSDRangel::SWGLimeSdrInputReport()); response.getLimeSdrInputReport()->init(); webapiFormatDeviceReport(response); @@ -1419,8 +1422,9 @@ int LimeSDRInput::webapiReportGet( int LimeSDRInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -1428,8 +1432,9 @@ int LimeSDRInput::webapiRunGet( int LimeSDRInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); diff --git a/plugins/samplesource/limesdrinput/limesdrinputthread.h b/plugins/samplesource/limesdrinput/limesdrinputthread.h index ddf671047..90b09b611 100644 --- a/plugins/samplesource/limesdrinput/limesdrinputthread.h +++ b/plugins/samplesource/limesdrinput/limesdrinputthread.h @@ -39,7 +39,7 @@ public: virtual void startWork(); virtual void stopWork(); - virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {} + virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; } virtual bool isRunning() { return m_running; } void setLog2Decimation(unsigned int log2_decim); diff --git a/plugins/samplesource/perseus/perseusinput.cpp b/plugins/samplesource/perseus/perseusinput.cpp index aaf431566..67632131e 100644 --- a/plugins/samplesource/perseus/perseusinput.cpp +++ b/plugins/samplesource/perseus/perseusinput.cpp @@ -402,8 +402,9 @@ bool PerseusInput::applySettings(const PerseusSettings& settings, bool force) int PerseusInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -411,8 +412,9 @@ int PerseusInput::webapiRunGet( int PerseusInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -428,8 +430,9 @@ int PerseusInput::webapiRun( int PerseusInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setPerseusSettings(new SWGSDRangel::SWGPerseusSettings()); response.getPerseusSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -440,8 +443,9 @@ int PerseusInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; PerseusSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -495,8 +499,9 @@ int PerseusInput::webapiSettingsPutPatch( int PerseusInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setPerseusReport(new SWGSDRangel::SWGPerseusReport()); response.getPerseusReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/perseus/perseusthread.cpp b/plugins/samplesource/perseus/perseusthread.cpp index ec0441a78..217dd6643 100644 --- a/plugins/samplesource/perseus/perseusthread.cpp +++ b/plugins/samplesource/perseus/perseusthread.cpp @@ -111,8 +111,9 @@ void PerseusThread::callback(const uint8_t* buf, qint32 len) m_sampleFifo->write(m_convertBuffer.begin(), it); } -int PerseusThread::rx_callback(void *buf, int buf_size, void *extra __attribute__((unused))) +int PerseusThread::rx_callback(void *buf, int buf_size, void *extra) { + (void) extra; qint32 nbIAndQ = buf_size / 3; // 3 bytes per I or Q m_this->callback((uint8_t*) buf, nbIAndQ); return 0; diff --git a/plugins/samplesource/plutosdrinput/plutosdrinput.cpp b/plugins/samplesource/plutosdrinput/plutosdrinput.cpp index 09c2317fc..c56c35a36 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinput.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinput.cpp @@ -619,8 +619,9 @@ float PlutoSDRInput::getTemperature() int PlutoSDRInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -628,8 +629,9 @@ int PlutoSDRInput::webapiRunGet( int PlutoSDRInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -645,8 +647,9 @@ int PlutoSDRInput::webapiRun( int PlutoSDRInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setPlutoSdrInputSettings(new SWGSDRangel::SWGPlutoSdrInputSettings()); response.getPlutoSdrInputSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -657,8 +660,9 @@ int PlutoSDRInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; PlutoSDRInputSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -737,8 +741,9 @@ int PlutoSDRInput::webapiSettingsPutPatch( int PlutoSDRInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setPlutoSdrInputReport(new SWGSDRangel::SWGPlutoSdrInputReport()); response.getPlutoSdrInputReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp b/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp index 441413b0d..9121a91a0 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp @@ -130,7 +130,7 @@ bool PlutoSDRInputGui::deserialize(const QByteArray& data) } } -bool PlutoSDRInputGui::handleMessage(const Message& message __attribute__((unused))) +bool PlutoSDRInputGui::handleMessage(const Message& message) { if (PlutoSDRInput::MsgConfigurePlutoSDR::match(message)) { diff --git a/plugins/samplesource/plutosdrinput/plutosdrinputthread.h b/plugins/samplesource/plutosdrinput/plutosdrinputthread.h index 4bd285aee..68d2f9bc8 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinputthread.h +++ b/plugins/samplesource/plutosdrinput/plutosdrinputthread.h @@ -37,7 +37,7 @@ public: virtual void startWork(); virtual void stopWork(); - virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {} + virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; } virtual bool isRunning() { return m_running; } void setLog2Decimation(unsigned int log2_decim); void setFcPos(int fcPos); diff --git a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp index 406f104ba..f78765cca 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp @@ -536,8 +536,9 @@ void RTLSDRInput::set_ds_mode(int on) int RTLSDRInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setRtlSdrSettings(new SWGSDRangel::SWGRtlSdrSettings()); response.getRtlSdrSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -548,8 +549,9 @@ int RTLSDRInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; RTLSDRSettings settings = m_settings; if (deviceSettingsKeys.contains("agc")) { @@ -638,8 +640,9 @@ void RTLSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res int RTLSDRInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -647,8 +650,9 @@ int RTLSDRInput::webapiRunGet( int RTLSDRInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -664,8 +668,9 @@ int RTLSDRInput::webapiRun( int RTLSDRInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setRtlSdrReport(new SWGSDRangel::SWGRtlSdrReport()); response.getRtlSdrReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourcegui.cpp b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourcegui.cpp index 2607ff590..c85e42208 100644 --- a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourcegui.cpp +++ b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourcegui.cpp @@ -163,8 +163,9 @@ qint64 SDRdaemonSourceGui::getCenterFrequency() const return m_streamCenterFrequency; } -void SDRdaemonSourceGui::setCenterFrequency(qint64 centerFrequency __attribute__((unused))) +void SDRdaemonSourceGui::setCenterFrequency(qint64 centerFrequency) { + (void) centerFrequency; } bool SDRdaemonSourceGui::handleMessage(const Message& message) @@ -308,8 +309,9 @@ void SDRdaemonSourceGui::sendSettings() m_updateTimer.start(100); } -void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked __attribute__((unused))) +void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked) { + (void) checked; m_settings.m_apiAddress = ui->apiAddress->text(); bool ctlOk; @@ -326,8 +328,9 @@ void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked __attribute__((u m_networkManager->get(m_networkRequest); } -void SDRdaemonSourceGui::on_dataApplyButton_clicked(bool checked __attribute__((unused))) +void SDRdaemonSourceGui::on_dataApplyButton_clicked(bool checked) { + (void) checked; m_settings.m_dataAddress = ui->dataAddress->text(); bool dataOk; @@ -427,8 +430,9 @@ void SDRdaemonSourceGui::on_record_toggled(bool checked) m_sampleSource->getInputMessageQueue()->push(message); } -void SDRdaemonSourceGui::on_eventCountsReset_clicked(bool checked __attribute__((unused))) +void SDRdaemonSourceGui::on_eventCountsReset_clicked(bool checked) { + (void) checked; m_countUnrecoverable = 0; m_countRecovered = 0; m_eventsTime.start(); diff --git a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp index 2718bed46..fa2899f38 100644 --- a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp +++ b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceinput.cpp @@ -134,8 +134,9 @@ quint64 SDRdaemonSourceInput::getCenterFrequency() const return m_SDRdaemonUDPHandler->getCenterFrequency(); } -void SDRdaemonSourceInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused))) +void SDRdaemonSourceInput::setCenterFrequency(qint64 centerFrequency) { + (void) centerFrequency; } std::time_t SDRdaemonSourceInput::getStartingTimeStamp() const @@ -241,8 +242,9 @@ void SDRdaemonSourceInput::applySettings(const SDRdaemonSourceSettings& settings int SDRdaemonSourceInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -250,8 +252,9 @@ int SDRdaemonSourceInput::webapiRunGet( int SDRdaemonSourceInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -267,8 +270,9 @@ int SDRdaemonSourceInput::webapiRun( int SDRdaemonSourceInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setSdrDaemonSourceSettings(new SWGSDRangel::SWGSDRdaemonSourceSettings()); response.getSdrDaemonSourceSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -279,8 +283,9 @@ int SDRdaemonSourceInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; SDRdaemonSourceSettings settings = m_settings; if (deviceSettingsKeys.contains("apiAddress")) { @@ -336,8 +341,9 @@ void SDRdaemonSourceInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSett int SDRdaemonSourceInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setSdrDaemonSourceReport(new SWGSDRangel::SWGSDRdaemonSourceReport()); response.getSdrDaemonSourceReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/sdrplay/sdrplayinput.cpp b/plugins/samplesource/sdrplay/sdrplayinput.cpp index cc970b956..80ff8815a 100644 --- a/plugins/samplesource/sdrplay/sdrplayinput.cpp +++ b/plugins/samplesource/sdrplay/sdrplayinput.cpp @@ -625,8 +625,9 @@ bool SDRPlayInput::setDeviceCenterFrequency(quint64 freq_hz) int SDRPlayInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -634,8 +635,9 @@ int SDRPlayInput::webapiRunGet( int SDRPlayInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -651,8 +653,9 @@ int SDRPlayInput::webapiRun( int SDRPlayInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setSdrPlaySettings(new SWGSDRangel::SWGSDRPlaySettings()); response.getSdrPlaySettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -663,8 +666,9 @@ int SDRPlayInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; SDRPlaySettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { @@ -759,8 +763,9 @@ void SDRPlayInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re int SDRPlayInput::webapiReportGet( SWGSDRangel::SWGDeviceReport& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setSdrPlayReport(new SWGSDRangel::SWGSDRPlayReport()); response.getSdrPlayReport()->init(); webapiFormatDeviceReport(response); diff --git a/plugins/samplesource/soapysdrinput/soapysdrinput.cpp b/plugins/samplesource/soapysdrinput/soapysdrinput.cpp index 3b31b221b..67795876e 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinput.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinput.cpp @@ -642,8 +642,9 @@ QByteArray SoapySDRInput::serialize() const return s.final(); } -bool SoapySDRInput::deserialize(const QByteArray& data __attribute__((unused))) +bool SoapySDRInput::deserialize(const QByteArray& data) { + (void) data; return false; } @@ -663,7 +664,7 @@ quint64 SoapySDRInput::getCenterFrequency() const return m_settings.m_centerFrequency; } -void SoapySDRInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused))) +void SoapySDRInput::setCenterFrequency(qint64 centerFrequency) { SoapySDRInputSettings settings = m_settings; settings.m_centerFrequency = centerFrequency; @@ -712,7 +713,7 @@ void SoapySDRInput::updateGains(SoapySDR::Device *dev, int requestedChannel, Soa } } -bool SoapySDRInput::handleMessage(const Message& message __attribute__((unused))) +bool SoapySDRInput::handleMessage(const Message& message) { if (MsgConfigureSoapySDRInput::match(message)) { diff --git a/plugins/samplesource/testsource/testsourcegui.cpp b/plugins/samplesource/testsource/testsourcegui.cpp index e91b49dec..ccffc6a25 100644 --- a/plugins/samplesource/testsource/testsourcegui.cpp +++ b/plugins/samplesource/testsource/testsourcegui.cpp @@ -198,16 +198,18 @@ void TestSourceGui::on_sampleSize_currentIndexChanged(int index) sendSettings(); } -void TestSourceGui::on_amplitudeCoarse_valueChanged(int value __attribute__((unused))) +void TestSourceGui::on_amplitudeCoarse_valueChanged(int value) { + (void) value; updateAmpFineLimit(); displayAmplitude(); m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value(); sendSettings(); } -void TestSourceGui::on_amplitudeFine_valueChanged(int value __attribute__((unused))) +void TestSourceGui::on_amplitudeFine_valueChanged(int value) { + (void) value; displayAmplitude(); m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value(); sendSettings(); diff --git a/plugins/samplesource/testsource/testsourceinput.cpp b/plugins/samplesource/testsource/testsourceinput.cpp index 3d230b2d6..776a1c540 100644 --- a/plugins/samplesource/testsource/testsourceinput.cpp +++ b/plugins/samplesource/testsource/testsourceinput.cpp @@ -388,8 +388,9 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, bool for int TestSourceInput::webapiRunGet( SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); return 200; } @@ -397,8 +398,9 @@ int TestSourceInput::webapiRunGet( int TestSourceInput::webapiRun( bool run, SWGSDRangel::SWGDeviceState& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; m_deviceAPI->getDeviceEngineStateStr(*response.getState()); MsgStartStop *message = MsgStartStop::create(run); m_inputMessageQueue.push(message); @@ -414,8 +416,9 @@ int TestSourceInput::webapiRun( int TestSourceInput::webapiSettingsGet( SWGSDRangel::SWGDeviceSettings& response, - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; response.setTestSourceSettings(new SWGSDRangel::SWGTestSourceSettings()); response.getTestSourceSettings()->init(); webapiFormatDeviceSettings(response, m_settings); @@ -426,8 +429,9 @@ int TestSourceInput::webapiSettingsPutPatch( bool force, const QStringList& deviceSettingsKeys, SWGSDRangel::SWGDeviceSettings& response, // query + response - QString& errorMessage __attribute__((unused))) + QString& errorMessage) { + (void) errorMessage; TestSourceSettings settings = m_settings; if (deviceSettingsKeys.contains("centerFrequency")) { diff --git a/sdrbase/dsp/decimatorsu.h b/sdrbase/dsp/decimatorsu.h index 36f897634..26489c1d5 100644 --- a/sdrbase/dsp/decimatorsu.h +++ b/sdrbase/dsp/decimatorsu.h @@ -387,7 +387,7 @@ void DecimatorsU::decimate4_sup(Sampl } template -void DecimatorsU::decimate8_inf(SampleVector::iterator* it, const T* buf __attribute__((unused)), qint32 len) +void DecimatorsU::decimate8_inf(SampleVector::iterator* it, const T* buf, qint32 len) { StorageType buf2[16], buf4[8], buf8[4]; @@ -463,7 +463,7 @@ void DecimatorsU::decimate8_inf(Sampl } template -void DecimatorsU::decimate8_sup(SampleVector::iterator* it, const T* buf __attribute__((unused)), qint32 len) +void DecimatorsU::decimate8_sup(SampleVector::iterator* it, const T* buf, qint32 len) { StorageType buf2[16], buf4[8], buf8[4]; diff --git a/sdrbase/dsp/dspengine.cpp b/sdrbase/dsp/dspengine.cpp index afa9c4453..623d93f39 100644 --- a/sdrbase/dsp/dspengine.cpp +++ b/sdrbase/dsp/dspengine.cpp @@ -134,8 +134,8 @@ void DSPEngine::setDVSerialSupport(bool support) } } #else -void DSPEngine::setDVSerialSupport(bool support __attribute__((unused))) -{} +void DSPEngine::setDVSerialSupport(bool support) +{ (void) support; } #endif bool DSPEngine::hasDVSerialSupport() @@ -153,8 +153,8 @@ void DSPEngine::getDVSerialNames(std::vector& deviceNames) m_dvSerialEngine.getDevicesNames(deviceNames); } #else -void DSPEngine::getDVSerialNames(std::vector& deviceNames __attribute((unused))) -{} +void DSPEngine::getDVSerialNames(std::vector& deviceNames) +{ (void) deviceNames; } #endif #ifdef DSD_USE_SERIALDV @@ -171,12 +171,20 @@ void DSPEngine::pushMbeFrame( } #else void DSPEngine::pushMbeFrame( - const unsigned char *mbeFrame __attribute((unused)), - int mbeRateIndex __attribute((unused)), - int mbeVolumeIndex __attribute((unused)), - unsigned char channels __attribute((unused)), - bool useHP __attribute((unused)), - int upsampling __attribute((unused)), - AudioFifo *audioFifo __attribute((unused))) -{} + const unsigned char *mbeFrame, + int mbeRateIndex, + int mbeVolumeIndex, + unsigned char channels, + bool useHP, + int upsampling, + AudioFifo *audioFifo) +{ + (void) mbeFrame; + (void) mbeRateIndex; + (void) mbeVolumeIndex; + (void) channels; + (void) useHP; + (void) upsampling; + (void) audioFifo; +} #endif