1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00

Windows: MSVC2017: fixed more attribute unused cases (2)

This commit is contained in:
f4exb 2018-11-13 08:51:14 +01:00
parent dc2f25a00b
commit 7574cb23d4
48 changed files with 295 additions and 157 deletions

View File

@ -32,7 +32,7 @@ public:
protected: protected:
DevicePerseus(); DevicePerseus();
DevicePerseus(const DevicePerseus&) : m_nbDevices(0) {} 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(); ~DevicePerseus();
private: private:

View File

@ -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; (void) checked;
QString fileName = QFileDialog::getOpenFileName(this, QString fileName = QFileDialog::getOpenFileName(this,

View File

@ -546,8 +546,9 @@ bool WFMMod::deserialize(const QByteArray& data)
int WFMMod::webapiSettingsGet( int WFMMod::webapiSettingsGet(
SWGSDRangel::SWGChannelSettings& response, SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setWfmModSettings(new SWGSDRangel::SWGWFMModSettings()); response.setWfmModSettings(new SWGSDRangel::SWGWFMModSettings());
response.getWfmModSettings()->init(); response.getWfmModSettings()->init();
webapiFormatChannelSettings(response, m_settings); webapiFormatChannelSettings(response, m_settings);
@ -558,8 +559,9 @@ int WFMMod::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& channelSettingsKeys, const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response, SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
WFMModSettings settings = m_settings; WFMModSettings settings = m_settings;
bool channelizerChange = false; bool channelizerChange = false;
@ -657,8 +659,9 @@ int WFMMod::webapiSettingsPutPatch(
int WFMMod::webapiReportGet( int WFMMod::webapiReportGet(
SWGSDRangel::SWGChannelReport& response, SWGSDRangel::SWGChannelReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setWfmModReport(new SWGSDRangel::SWGWFMModReport()); response.setWfmModReport(new SWGSDRangel::SWGWFMModReport());
response.getWfmModReport()->init(); response.getWfmModReport()->init();
webapiFormatChannelReport(response); webapiFormatChannelReport(response);

View File

@ -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, QString fileName = QFileDialog::getOpenFileName(this,
tr("Open raw audio file"), ".", tr("Raw audio Files (*.raw)"), 0, QFileDialog::DontUseNativeDialog); 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); 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) void WFMModGUI::onMenuDialogCalled(const QPoint &p)

View File

@ -599,8 +599,9 @@ bool UDPSource::deserialize(const QByteArray& data)
int UDPSource::webapiSettingsGet( int UDPSource::webapiSettingsGet(
SWGSDRangel::SWGChannelSettings& response, SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setUdpSourceSettings(new SWGSDRangel::SWGUDPSourceSettings()); response.setUdpSourceSettings(new SWGSDRangel::SWGUDPSourceSettings());
response.getUdpSourceSettings()->init(); response.getUdpSourceSettings()->init();
webapiFormatChannelSettings(response, m_settings); webapiFormatChannelSettings(response, m_settings);
@ -611,8 +612,9 @@ int UDPSource::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& channelSettingsKeys, const QStringList& channelSettingsKeys,
SWGSDRangel::SWGChannelSettings& response, SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
UDPSourceSettings settings = m_settings; UDPSourceSettings settings = m_settings;
bool frequencyOffsetChanged = false; bool frequencyOffsetChanged = false;
@ -700,8 +702,9 @@ int UDPSource::webapiSettingsPutPatch(
int UDPSource::webapiReportGet( int UDPSource::webapiReportGet(
SWGSDRangel::SWGChannelReport& response, SWGSDRangel::SWGChannelReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setUdpSourceReport(new SWGSDRangel::SWGUDPSourceReport()); response.setUdpSourceReport(new SWGSDRangel::SWGUDPSourceReport());
response.getUdpSourceReport()->init(); response.getUdpSourceReport()->init();
webapiFormatChannelReport(response); webapiFormatChannelReport(response);

View File

@ -316,8 +316,9 @@ void UDPSourceGUI::on_localUDPPort_editingFinished()
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }"); 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; bool ok;
Real inputSampleRate = ui->sampleRate->text().toDouble(&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; }"); 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; bool ok;
Real rfBandwidth = ui->rfBandwidth->text().toDouble(&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; }"); 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; bool ok;
int fmDeviation = ui->fmDeviation->text().toInt(&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; }"); 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; bool ok;
int amModPercent = ui->amModPercent->text().toInt(&ok); int amModPercent = ui->amModPercent->text().toInt(&ok);

View File

@ -535,8 +535,9 @@ bool Bladerf1Output::applySettings(const BladeRF1OutputSettings& settings, bool
int Bladerf1Output::webapiSettingsGet( int Bladerf1Output::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setBladeRf1OutputSettings(new SWGSDRangel::SWGBladeRF1OutputSettings()); response.setBladeRf1OutputSettings(new SWGSDRangel::SWGBladeRF1OutputSettings());
response.getBladeRf1OutputSettings()->init(); response.getBladeRf1OutputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -560,8 +561,9 @@ int Bladerf1Output::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
BladeRF1OutputSettings settings = m_settings; BladeRF1OutputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -607,8 +609,9 @@ int Bladerf1Output::webapiSettingsPutPatch(
int Bladerf1Output::webapiRunGet( int Bladerf1Output::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -616,8 +619,9 @@ int Bladerf1Output::webapiRunGet(
int Bladerf1Output::webapiRun( int Bladerf1Output::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -900,8 +900,9 @@ int BladeRF2Output::getNbChannels()
int BladeRF2Output::webapiSettingsGet( int BladeRF2Output::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setBladeRf2OutputSettings(new SWGSDRangel::SWGBladeRF2OutputSettings()); response.setBladeRf2OutputSettings(new SWGSDRangel::SWGBladeRF2OutputSettings());
response.getBladeRf2OutputSettings()->init(); response.getBladeRf2OutputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -912,8 +913,9 @@ int BladeRF2Output::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
BladeRF2OutputSettings settings = m_settings; BladeRF2OutputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -957,8 +959,9 @@ int BladeRF2Output::webapiSettingsPutPatch(
return 200; 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.setBladeRf2OutputReport(new SWGSDRangel::SWGBladeRF2OutputReport());
response.getBladeRf2OutputReport()->init(); response.getBladeRf2OutputReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);
@ -1019,8 +1022,9 @@ void BladeRF2Output::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp
int BladeRF2Output::webapiRunGet( int BladeRF2Output::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -1028,8 +1032,9 @@ int BladeRF2Output::webapiRunGet(
int BladeRF2Output::webapiRun( int BladeRF2Output::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -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, QString fileName = QFileDialog::getSaveFileName(this,
tr("Save I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog); tr("Save I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog);

View File

@ -318,8 +318,9 @@ void FileSinkOutput::applySettings(const FileSinkSettings& settings, bool force)
int FileSinkOutput::webapiRunGet( int FileSinkOutput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -327,8 +328,9 @@ int FileSinkOutput::webapiRunGet(
int FileSinkOutput::webapiRun( int FileSinkOutput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -463,8 +463,9 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc
int HackRFOutput::webapiSettingsGet( int HackRFOutput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setHackRfOutputSettings(new SWGSDRangel::SWGHackRFOutputSettings()); response.setHackRfOutputSettings(new SWGSDRangel::SWGHackRFOutputSettings());
response.getHackRfOutputSettings()->init(); response.getHackRfOutputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -475,8 +476,9 @@ int HackRFOutput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
HackRFOutputSettings settings = m_settings; HackRFOutputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -531,8 +533,9 @@ void HackRFOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
int HackRFOutput::webapiRunGet( int HackRFOutput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -540,8 +543,9 @@ int HackRFOutput::webapiRunGet(
int HackRFOutput::webapiRun( int HackRFOutput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -1102,8 +1102,9 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo
int LimeSDROutput::webapiSettingsGet( int LimeSDROutput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setLimeSdrOutputSettings(new SWGSDRangel::SWGLimeSdrOutputSettings()); response.setLimeSdrOutputSettings(new SWGSDRangel::SWGLimeSdrOutputSettings());
response.getLimeSdrOutputSettings()->init(); response.getLimeSdrOutputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -1114,8 +1115,9 @@ int LimeSDROutput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
LimeSDROutputSettings settings = m_settings; LimeSDROutputSettings settings = m_settings;
if (deviceSettingsKeys.contains("antennaPath")) { if (deviceSettingsKeys.contains("antennaPath")) {
@ -1179,8 +1181,9 @@ int LimeSDROutput::webapiSettingsPutPatch(
int LimeSDROutput::webapiReportGet( int LimeSDROutput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setLimeSdrOutputReport(new SWGSDRangel::SWGLimeSdrOutputReport()); response.setLimeSdrOutputReport(new SWGSDRangel::SWGLimeSdrOutputReport());
response.getLimeSdrOutputReport()->init(); response.getLimeSdrOutputReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);
@ -1207,8 +1210,9 @@ void LimeSDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r
int LimeSDROutput::webapiRunGet( int LimeSDROutput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -1216,8 +1220,9 @@ int LimeSDROutput::webapiRunGet(
int LimeSDROutput::webapiRun( int LimeSDROutput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -39,7 +39,7 @@ public:
virtual void startWork(); virtual void startWork();
virtual void stopWork(); virtual void stopWork();
virtual void setDeviceSampleRate(int __attribute__((unused)) sampleRate) {} virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; }
virtual bool isRunning() { return m_running; } virtual bool isRunning() { return m_running; }
void setLog2Interpolation(unsigned int log2_ioterp); void setLog2Interpolation(unsigned int log2_ioterp);

View File

@ -549,8 +549,9 @@ float PlutoSDROutput::getTemperature()
int PlutoSDROutput::webapiRunGet( int PlutoSDROutput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -558,8 +559,9 @@ int PlutoSDROutput::webapiRunGet(
int PlutoSDROutput::webapiRun( int PlutoSDROutput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -575,8 +577,9 @@ int PlutoSDROutput::webapiRun(
int PlutoSDROutput::webapiSettingsGet( int PlutoSDROutput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setPlutoSdrOutputSettings(new SWGSDRangel::SWGPlutoSdrOutputSettings()); response.setPlutoSdrOutputSettings(new SWGSDRangel::SWGPlutoSdrOutputSettings());
response.getPlutoSdrOutputSettings()->init(); response.getPlutoSdrOutputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -587,8 +590,9 @@ int PlutoSDROutput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
PlutoSDROutputSettings settings = m_settings; PlutoSDROutputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -648,8 +652,9 @@ int PlutoSDROutput::webapiSettingsPutPatch(
int PlutoSDROutput::webapiReportGet( int PlutoSDROutput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setPlutoSdrOutputReport(new SWGSDRangel::SWGPlutoSdrOutputReport()); response.setPlutoSdrOutputReport(new SWGSDRangel::SWGPlutoSdrOutputReport());
response.getPlutoSdrOutputReport()->init(); response.getPlutoSdrOutputReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -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)) if (PlutoSDROutput::MsgConfigurePlutoSDR::match(message))
{ {
const PlutoSDROutput::MsgConfigurePlutoSDR& cfg = (PlutoSDROutput::MsgConfigurePlutoSDR&) message; const PlutoSDROutput::MsgConfigurePlutoSDR& cfg = (PlutoSDROutput::MsgConfigurePlutoSDR&) message;

View File

@ -37,7 +37,7 @@ public:
virtual void startWork(); virtual void startWork();
virtual void stopWork(); virtual void stopWork();
virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {} virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; }
virtual bool isRunning() { return m_running; } virtual bool isRunning() { return m_running; }
void setLog2Interpolation(unsigned int log2_interp); void setLog2Interpolation(unsigned int log2_interp);

View File

@ -391,8 +391,9 @@ void SDRdaemonSinkGui::on_dataPort_returnPressed()
sendSettings(); 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(); m_settings.m_apiAddress = ui->apiAddress->text();
bool apiOk; bool apiOk;
@ -410,8 +411,9 @@ void SDRdaemonSinkGui::on_apiApplyButton_clicked(bool checked __attribute__((unu
m_networkManager->get(m_networkRequest); 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(); m_settings.m_dataAddress = ui->dataAddress->text();
bool dataOk; 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_countUnrecoverable = 0;
m_countRecovered = 0; m_countRecovered = 0;
m_time.start(); m_time.start();

View File

@ -81,7 +81,7 @@ public:
void resetToDefaults(); void resetToDefaults();
virtual qint64 getCenterFrequency() const { return m_deviceCenterFrequency; } virtual qint64 getCenterFrequency() const { return m_deviceCenterFrequency; }
virtual void setCenterFrequency(qint64 centerFrequency __attribute__((unused))) {} virtual void setCenterFrequency(qint64 centerFrequency) { (void) centerFrequency; }
QByteArray serialize() const; QByteArray serialize() const;
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }

View File

@ -306,8 +306,9 @@ void SDRdaemonSinkOutput::applySettings(const SDRdaemonSinkSettings& settings, b
int SDRdaemonSinkOutput::webapiRunGet( int SDRdaemonSinkOutput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -315,8 +316,9 @@ int SDRdaemonSinkOutput::webapiRunGet(
int SDRdaemonSinkOutput::webapiRun( int SDRdaemonSinkOutput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -332,8 +334,9 @@ int SDRdaemonSinkOutput::webapiRun(
int SDRdaemonSinkOutput::webapiSettingsGet( int SDRdaemonSinkOutput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setSdrDaemonSinkSettings(new SWGSDRangel::SWGSDRdaemonSinkSettings()); response.setSdrDaemonSinkSettings(new SWGSDRangel::SWGSDRdaemonSinkSettings());
response.getSdrDaemonSinkSettings()->init(); response.getSdrDaemonSinkSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -344,8 +347,9 @@ int SDRdaemonSinkOutput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
SDRdaemonSinkSettings settings = m_settings; SDRdaemonSinkSettings settings = m_settings;
if (deviceSettingsKeys.contains("sampleRate")) { if (deviceSettingsKeys.contains("sampleRate")) {
@ -391,8 +395,9 @@ int SDRdaemonSinkOutput::webapiSettingsPutPatch(
int SDRdaemonSinkOutput::webapiReportGet( int SDRdaemonSinkOutput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setSdrDaemonSinkReport(new SWGSDRangel::SWGSDRdaemonSinkReport()); response.setSdrDaemonSinkReport(new SWGSDRangel::SWGSDRdaemonSinkReport());
response.getSdrDaemonSinkReport()->init(); response.getSdrDaemonSinkReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -136,7 +136,7 @@ public:
virtual const QString& getDeviceDescription() const; virtual const QString& getDeviceDescription() const;
virtual int getSampleRate() const; virtual int getSampleRate() const;
virtual quint64 getCenterFrequency() const; virtual quint64 getCenterFrequency() const;
virtual void setCenterFrequency(qint64 centerFrequency __attribute__((unused))) {} virtual void setCenterFrequency(qint64 centerFrequency) { (void) centerFrequency; }
std::time_t getStartingTimeStamp() const; std::time_t getStartingTimeStamp() const;
virtual bool handleMessage(const Message& message); virtual bool handleMessage(const Message& message);

View File

@ -599,7 +599,7 @@ QByteArray SoapySDROutput::serialize() const
return m_settings.serialize(); return m_settings.serialize();
} }
bool SoapySDROutput::deserialize(const QByteArray& data __attribute__((unused))) bool SoapySDROutput::deserialize(const QByteArray& data)
{ {
bool success = true; bool success = true;

View File

@ -594,8 +594,9 @@ struct airspy_device *AirspyInput::open_airspy_from_sequence(int sequence)
int AirspyInput::webapiRunGet( int AirspyInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -603,8 +604,9 @@ int AirspyInput::webapiRunGet(
int AirspyInput::webapiRun( int AirspyInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -620,8 +622,9 @@ int AirspyInput::webapiRun(
int AirspyInput::webapiSettingsGet( int AirspyInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setAirspySettings(new SWGSDRangel::SWGAirspySettings()); response.setAirspySettings(new SWGSDRangel::SWGAirspySettings());
response.getAirspySettings()->init(); response.getAirspySettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -632,8 +635,9 @@ int AirspyInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
AirspySettings settings = m_settings; AirspySettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -702,8 +706,9 @@ int AirspyInput::webapiSettingsPutPatch(
int AirspyInput::webapiReportGet( int AirspyInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setAirspyReport(new SWGSDRangel::SWGAirspyReport()); response.setAirspyReport(new SWGSDRangel::SWGAirspyReport());
response.getAirspyReport()->init(); response.getAirspyReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -486,8 +486,9 @@ airspyhf_device_t *AirspyHFInput::open_airspyhf_from_serial(const QString& seria
int AirspyHFInput::webapiSettingsGet( int AirspyHFInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings()); response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init(); response.getAirspyHfSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -498,8 +499,9 @@ int AirspyHFInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
AirspyHFSettings settings = m_settings; AirspyHFSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -570,8 +572,9 @@ void AirspyHFInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
int AirspyHFInput::webapiReportGet( int AirspyHFInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setAirspyHfReport(new SWGSDRangel::SWGAirspyHFReport()); response.setAirspyHfReport(new SWGSDRangel::SWGAirspyHFReport());
response.getAirspyHfReport()->init(); response.getAirspyHfReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);
@ -580,8 +583,9 @@ int AirspyHFInput::webapiReportGet(
int AirspyHFInput::webapiRunGet( int AirspyHFInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -589,8 +593,9 @@ int AirspyHFInput::webapiRunGet(
int AirspyHFInput::webapiRun( int AirspyHFInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -609,8 +609,9 @@ bladerf_lna_gain Bladerf1Input::getLnaGain(int lnaGain)
int Bladerf1Input::webapiSettingsGet( int Bladerf1Input::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setBladeRf1InputSettings(new SWGSDRangel::SWGBladeRF1InputSettings()); response.setBladeRf1InputSettings(new SWGSDRangel::SWGBladeRF1InputSettings());
response.getBladeRf1InputSettings()->init(); response.getBladeRf1InputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -644,8 +645,9 @@ int Bladerf1Input::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
BladeRF1InputSettings settings = m_settings; BladeRF1InputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -706,8 +708,9 @@ int Bladerf1Input::webapiSettingsPutPatch(
int Bladerf1Input::webapiRunGet( int Bladerf1Input::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -715,8 +718,9 @@ int Bladerf1Input::webapiRunGet(
int Bladerf1Input::webapiRun( int Bladerf1Input::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -967,8 +967,9 @@ bool BladeRF2Input::applySettings(const BladeRF2InputSettings& settings, bool fo
int BladeRF2Input::webapiSettingsGet( int BladeRF2Input::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setBladeRf2InputSettings(new SWGSDRangel::SWGBladeRF2InputSettings()); response.setBladeRf2InputSettings(new SWGSDRangel::SWGBladeRF2InputSettings());
response.getBladeRf2InputSettings()->init(); response.getBladeRf2InputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -979,8 +980,9 @@ int BladeRF2Input::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
BladeRF2InputSettings settings = m_settings; BladeRF2InputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -1039,8 +1041,9 @@ int BladeRF2Input::webapiSettingsPutPatch(
return 200; 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.setBladeRf2InputReport(new SWGSDRangel::SWGBladeRF2InputReport());
response.getBladeRf2InputReport()->init(); response.getBladeRf2InputReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);
@ -1123,8 +1126,9 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo
int BladeRF2Input::webapiRunGet( int BladeRF2Input::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -1132,8 +1136,9 @@ int BladeRF2Input::webapiRunGet(
int BladeRF2Input::webapiRun( int BladeRF2Input::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -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)) if (FCDProInput::MsgConfigureFCDPro::match(message))
{ {
@ -434,8 +434,9 @@ void FCDProGui::on_gain6_currentIndexChanged(int index)
sendSettings(); 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.m_lnaGainIndex = 8; // +15 dB
//m_settings.rfFilterIndex = 0; //m_settings.rfFilterIndex = 0;
m_settings.m_mixerGainIndex = 1; // +12 dB m_settings.m_mixerGainIndex = 1; // +12 dB

View File

@ -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; //quint8 cmd = on ? 1 : 0;
// TODO: use FCD Pro controls // TODO: use FCD Pro controls
@ -749,8 +750,9 @@ void FCDProInput::set_lo_ppm()
int FCDProInput::webapiRunGet( int FCDProInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -758,8 +760,9 @@ int FCDProInput::webapiRunGet(
int FCDProInput::webapiRun( int FCDProInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -775,8 +778,9 @@ int FCDProInput::webapiRun(
int FCDProInput::webapiSettingsGet( int FCDProInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setFcdProSettings(new SWGSDRangel::SWGFCDProSettings()); response.setFcdProSettings(new SWGSDRangel::SWGFCDProSettings());
response.getFcdProSettings()->init(); response.getFcdProSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -787,8 +791,9 @@ int FCDProInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
FCDProSettings settings = m_settings; FCDProSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {

View File

@ -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)) if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message))
{ {

View File

@ -460,8 +460,9 @@ void FCDProPlusInput::set_lo_ppm()
int FCDProPlusInput::webapiRunGet( int FCDProPlusInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -469,8 +470,9 @@ int FCDProPlusInput::webapiRunGet(
int FCDProPlusInput::webapiRun( int FCDProPlusInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -486,8 +488,9 @@ int FCDProPlusInput::webapiRun(
int FCDProPlusInput::webapiSettingsGet( int FCDProPlusInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setFcdProPlusSettings(new SWGSDRangel::SWGFCDProPlusSettings()); response.setFcdProPlusSettings(new SWGSDRangel::SWGFCDProPlusSettings());
response.getFcdProPlusSettings()->init(); response.getFcdProPlusSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -498,8 +501,9 @@ int FCDProPlusInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
FCDProPlusSettings settings = m_settings; FCDProPlusSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {

View File

@ -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, QString fileName = QFileDialog::getOpenFileName(this,
tr("Open I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog); tr("Open I/Q record file"), ".", tr("SDR I/Q Files (*.sdriq)"), 0, QFileDialog::DontUseNativeDialog);

View File

@ -409,8 +409,9 @@ bool FileSourceInput::applySettings(const FileSourceSettings& settings, bool for
int FileSourceInput::webapiSettingsGet( int FileSourceInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setFileSourceSettings(new SWGSDRangel::SWGFileSourceSettings()); response.setFileSourceSettings(new SWGSDRangel::SWGFileSourceSettings());
response.getFileSourceSettings()->init(); response.getFileSourceSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -421,8 +422,9 @@ int FileSourceInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
FileSourceSettings settings = m_settings; FileSourceSettings settings = m_settings;
if (deviceSettingsKeys.contains("fileName")) { if (deviceSettingsKeys.contains("fileName")) {
@ -450,8 +452,9 @@ int FileSourceInput::webapiSettingsPutPatch(
int FileSourceInput::webapiRunGet( int FileSourceInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -459,8 +462,9 @@ int FileSourceInput::webapiRunGet(
int FileSourceInput::webapiRun( int FileSourceInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -476,8 +480,9 @@ int FileSourceInput::webapiRun(
int FileSourceInput::webapiReportGet( int FileSourceInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setFileSourceReport(new SWGSDRangel::SWGFileSourceReport()); response.setFileSourceReport(new SWGSDRangel::SWGFileSourceReport());
response.getFileSourceReport()->init(); response.getFileSourceReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -528,8 +528,9 @@ bool HackRFInput::applySettings(const HackRFInputSettings& settings, bool force)
int HackRFInput::webapiSettingsGet( int HackRFInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setHackRfInputSettings(new SWGSDRangel::SWGHackRFInputSettings()); response.setHackRfInputSettings(new SWGSDRangel::SWGHackRFInputSettings());
response.getHackRfInputSettings()->init(); response.getHackRfInputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -540,8 +541,9 @@ int HackRFInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
HackRFInputSettings settings = m_settings; HackRFInputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -628,8 +630,9 @@ void HackRFInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res
int HackRFInput::webapiRunGet( int HackRFInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -637,8 +640,9 @@ int HackRFInput::webapiRunGet(
int HackRFInput::webapiRun( int HackRFInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -1280,8 +1280,9 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
int LimeSDRInput::webapiSettingsGet( int LimeSDRInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setLimeSdrInputSettings(new SWGSDRangel::SWGLimeSdrInputSettings()); response.setLimeSdrInputSettings(new SWGSDRangel::SWGLimeSdrInputSettings());
response.getLimeSdrInputSettings()->init(); response.getLimeSdrInputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -1292,8 +1293,9 @@ int LimeSDRInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
LimeSDRInputSettings settings = m_settings; LimeSDRInputSettings settings = m_settings;
if (deviceSettingsKeys.contains("antennaPath")) { if (deviceSettingsKeys.contains("antennaPath")) {
@ -1409,8 +1411,9 @@ void LimeSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
int LimeSDRInput::webapiReportGet( int LimeSDRInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setLimeSdrInputReport(new SWGSDRangel::SWGLimeSdrInputReport()); response.setLimeSdrInputReport(new SWGSDRangel::SWGLimeSdrInputReport());
response.getLimeSdrInputReport()->init(); response.getLimeSdrInputReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);
@ -1419,8 +1422,9 @@ int LimeSDRInput::webapiReportGet(
int LimeSDRInput::webapiRunGet( int LimeSDRInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -1428,8 +1432,9 @@ int LimeSDRInput::webapiRunGet(
int LimeSDRInput::webapiRun( int LimeSDRInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);

View File

@ -39,7 +39,7 @@ public:
virtual void startWork(); virtual void startWork();
virtual void stopWork(); virtual void stopWork();
virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {} virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; }
virtual bool isRunning() { return m_running; } virtual bool isRunning() { return m_running; }
void setLog2Decimation(unsigned int log2_decim); void setLog2Decimation(unsigned int log2_decim);

View File

@ -402,8 +402,9 @@ bool PerseusInput::applySettings(const PerseusSettings& settings, bool force)
int PerseusInput::webapiRunGet( int PerseusInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -411,8 +412,9 @@ int PerseusInput::webapiRunGet(
int PerseusInput::webapiRun( int PerseusInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -428,8 +430,9 @@ int PerseusInput::webapiRun(
int PerseusInput::webapiSettingsGet( int PerseusInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setPerseusSettings(new SWGSDRangel::SWGPerseusSettings()); response.setPerseusSettings(new SWGSDRangel::SWGPerseusSettings());
response.getPerseusSettings()->init(); response.getPerseusSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -440,8 +443,9 @@ int PerseusInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
PerseusSettings settings = m_settings; PerseusSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -495,8 +499,9 @@ int PerseusInput::webapiSettingsPutPatch(
int PerseusInput::webapiReportGet( int PerseusInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setPerseusReport(new SWGSDRangel::SWGPerseusReport()); response.setPerseusReport(new SWGSDRangel::SWGPerseusReport());
response.getPerseusReport()->init(); response.getPerseusReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -111,8 +111,9 @@ void PerseusThread::callback(const uint8_t* buf, qint32 len)
m_sampleFifo->write(m_convertBuffer.begin(), it); 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 qint32 nbIAndQ = buf_size / 3; // 3 bytes per I or Q
m_this->callback((uint8_t*) buf, nbIAndQ); m_this->callback((uint8_t*) buf, nbIAndQ);
return 0; return 0;

View File

@ -619,8 +619,9 @@ float PlutoSDRInput::getTemperature()
int PlutoSDRInput::webapiRunGet( int PlutoSDRInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -628,8 +629,9 @@ int PlutoSDRInput::webapiRunGet(
int PlutoSDRInput::webapiRun( int PlutoSDRInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -645,8 +647,9 @@ int PlutoSDRInput::webapiRun(
int PlutoSDRInput::webapiSettingsGet( int PlutoSDRInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setPlutoSdrInputSettings(new SWGSDRangel::SWGPlutoSdrInputSettings()); response.setPlutoSdrInputSettings(new SWGSDRangel::SWGPlutoSdrInputSettings());
response.getPlutoSdrInputSettings()->init(); response.getPlutoSdrInputSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -657,8 +660,9 @@ int PlutoSDRInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
PlutoSDRInputSettings settings = m_settings; PlutoSDRInputSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -737,8 +741,9 @@ int PlutoSDRInput::webapiSettingsPutPatch(
int PlutoSDRInput::webapiReportGet( int PlutoSDRInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setPlutoSdrInputReport(new SWGSDRangel::SWGPlutoSdrInputReport()); response.setPlutoSdrInputReport(new SWGSDRangel::SWGPlutoSdrInputReport());
response.getPlutoSdrInputReport()->init(); response.getPlutoSdrInputReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -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)) if (PlutoSDRInput::MsgConfigurePlutoSDR::match(message))
{ {

View File

@ -37,7 +37,7 @@ public:
virtual void startWork(); virtual void startWork();
virtual void stopWork(); virtual void stopWork();
virtual void setDeviceSampleRate(int sampleRate __attribute__((unused))) {} virtual void setDeviceSampleRate(int sampleRate) { (void) sampleRate; }
virtual bool isRunning() { return m_running; } virtual bool isRunning() { return m_running; }
void setLog2Decimation(unsigned int log2_decim); void setLog2Decimation(unsigned int log2_decim);
void setFcPos(int fcPos); void setFcPos(int fcPos);

View File

@ -536,8 +536,9 @@ void RTLSDRInput::set_ds_mode(int on)
int RTLSDRInput::webapiSettingsGet( int RTLSDRInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setRtlSdrSettings(new SWGSDRangel::SWGRtlSdrSettings()); response.setRtlSdrSettings(new SWGSDRangel::SWGRtlSdrSettings());
response.getRtlSdrSettings()->init(); response.getRtlSdrSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -548,8 +549,9 @@ int RTLSDRInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
RTLSDRSettings settings = m_settings; RTLSDRSettings settings = m_settings;
if (deviceSettingsKeys.contains("agc")) { if (deviceSettingsKeys.contains("agc")) {
@ -638,8 +640,9 @@ void RTLSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res
int RTLSDRInput::webapiRunGet( int RTLSDRInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -647,8 +650,9 @@ int RTLSDRInput::webapiRunGet(
int RTLSDRInput::webapiRun( int RTLSDRInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -664,8 +668,9 @@ int RTLSDRInput::webapiRun(
int RTLSDRInput::webapiReportGet( int RTLSDRInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setRtlSdrReport(new SWGSDRangel::SWGRtlSdrReport()); response.setRtlSdrReport(new SWGSDRangel::SWGRtlSdrReport());
response.getRtlSdrReport()->init(); response.getRtlSdrReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -163,8 +163,9 @@ qint64 SDRdaemonSourceGui::getCenterFrequency() const
return m_streamCenterFrequency; return m_streamCenterFrequency;
} }
void SDRdaemonSourceGui::setCenterFrequency(qint64 centerFrequency __attribute__((unused))) void SDRdaemonSourceGui::setCenterFrequency(qint64 centerFrequency)
{ {
(void) centerFrequency;
} }
bool SDRdaemonSourceGui::handleMessage(const Message& message) bool SDRdaemonSourceGui::handleMessage(const Message& message)
@ -308,8 +309,9 @@ void SDRdaemonSourceGui::sendSettings()
m_updateTimer.start(100); 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(); m_settings.m_apiAddress = ui->apiAddress->text();
bool ctlOk; bool ctlOk;
@ -326,8 +328,9 @@ void SDRdaemonSourceGui::on_apiApplyButton_clicked(bool checked __attribute__((u
m_networkManager->get(m_networkRequest); 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(); m_settings.m_dataAddress = ui->dataAddress->text();
bool dataOk; bool dataOk;
@ -427,8 +430,9 @@ void SDRdaemonSourceGui::on_record_toggled(bool checked)
m_sampleSource->getInputMessageQueue()->push(message); 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_countUnrecoverable = 0;
m_countRecovered = 0; m_countRecovered = 0;
m_eventsTime.start(); m_eventsTime.start();

View File

@ -134,8 +134,9 @@ quint64 SDRdaemonSourceInput::getCenterFrequency() const
return m_SDRdaemonUDPHandler->getCenterFrequency(); return m_SDRdaemonUDPHandler->getCenterFrequency();
} }
void SDRdaemonSourceInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused))) void SDRdaemonSourceInput::setCenterFrequency(qint64 centerFrequency)
{ {
(void) centerFrequency;
} }
std::time_t SDRdaemonSourceInput::getStartingTimeStamp() const std::time_t SDRdaemonSourceInput::getStartingTimeStamp() const
@ -241,8 +242,9 @@ void SDRdaemonSourceInput::applySettings(const SDRdaemonSourceSettings& settings
int SDRdaemonSourceInput::webapiRunGet( int SDRdaemonSourceInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -250,8 +252,9 @@ int SDRdaemonSourceInput::webapiRunGet(
int SDRdaemonSourceInput::webapiRun( int SDRdaemonSourceInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -267,8 +270,9 @@ int SDRdaemonSourceInput::webapiRun(
int SDRdaemonSourceInput::webapiSettingsGet( int SDRdaemonSourceInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setSdrDaemonSourceSettings(new SWGSDRangel::SWGSDRdaemonSourceSettings()); response.setSdrDaemonSourceSettings(new SWGSDRangel::SWGSDRdaemonSourceSettings());
response.getSdrDaemonSourceSettings()->init(); response.getSdrDaemonSourceSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -279,8 +283,9 @@ int SDRdaemonSourceInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
SDRdaemonSourceSettings settings = m_settings; SDRdaemonSourceSettings settings = m_settings;
if (deviceSettingsKeys.contains("apiAddress")) { if (deviceSettingsKeys.contains("apiAddress")) {
@ -336,8 +341,9 @@ void SDRdaemonSourceInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSett
int SDRdaemonSourceInput::webapiReportGet( int SDRdaemonSourceInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setSdrDaemonSourceReport(new SWGSDRangel::SWGSDRdaemonSourceReport()); response.setSdrDaemonSourceReport(new SWGSDRangel::SWGSDRdaemonSourceReport());
response.getSdrDaemonSourceReport()->init(); response.getSdrDaemonSourceReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -625,8 +625,9 @@ bool SDRPlayInput::setDeviceCenterFrequency(quint64 freq_hz)
int SDRPlayInput::webapiRunGet( int SDRPlayInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -634,8 +635,9 @@ int SDRPlayInput::webapiRunGet(
int SDRPlayInput::webapiRun( int SDRPlayInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -651,8 +653,9 @@ int SDRPlayInput::webapiRun(
int SDRPlayInput::webapiSettingsGet( int SDRPlayInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setSdrPlaySettings(new SWGSDRangel::SWGSDRPlaySettings()); response.setSdrPlaySettings(new SWGSDRangel::SWGSDRPlaySettings());
response.getSdrPlaySettings()->init(); response.getSdrPlaySettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -663,8 +666,9 @@ int SDRPlayInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
SDRPlaySettings settings = m_settings; SDRPlaySettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {
@ -759,8 +763,9 @@ void SDRPlayInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
int SDRPlayInput::webapiReportGet( int SDRPlayInput::webapiReportGet(
SWGSDRangel::SWGDeviceReport& response, SWGSDRangel::SWGDeviceReport& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setSdrPlayReport(new SWGSDRangel::SWGSDRPlayReport()); response.setSdrPlayReport(new SWGSDRangel::SWGSDRPlayReport());
response.getSdrPlayReport()->init(); response.getSdrPlayReport()->init();
webapiFormatDeviceReport(response); webapiFormatDeviceReport(response);

View File

@ -642,8 +642,9 @@ QByteArray SoapySDRInput::serialize() const
return s.final(); return s.final();
} }
bool SoapySDRInput::deserialize(const QByteArray& data __attribute__((unused))) bool SoapySDRInput::deserialize(const QByteArray& data)
{ {
(void) data;
return false; return false;
} }
@ -663,7 +664,7 @@ quint64 SoapySDRInput::getCenterFrequency() const
return m_settings.m_centerFrequency; return m_settings.m_centerFrequency;
} }
void SoapySDRInput::setCenterFrequency(qint64 centerFrequency __attribute__((unused))) void SoapySDRInput::setCenterFrequency(qint64 centerFrequency)
{ {
SoapySDRInputSettings settings = m_settings; SoapySDRInputSettings settings = m_settings;
settings.m_centerFrequency = centerFrequency; 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)) if (MsgConfigureSoapySDRInput::match(message))
{ {

View File

@ -198,16 +198,18 @@ void TestSourceGui::on_sampleSize_currentIndexChanged(int index)
sendSettings(); sendSettings();
} }
void TestSourceGui::on_amplitudeCoarse_valueChanged(int value __attribute__((unused))) void TestSourceGui::on_amplitudeCoarse_valueChanged(int value)
{ {
(void) value;
updateAmpFineLimit(); updateAmpFineLimit();
displayAmplitude(); displayAmplitude();
m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value(); m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value();
sendSettings(); sendSettings();
} }
void TestSourceGui::on_amplitudeFine_valueChanged(int value __attribute__((unused))) void TestSourceGui::on_amplitudeFine_valueChanged(int value)
{ {
(void) value;
displayAmplitude(); displayAmplitude();
m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value(); m_settings.m_amplitudeBits = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value();
sendSettings(); sendSettings();

View File

@ -388,8 +388,9 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, bool for
int TestSourceInput::webapiRunGet( int TestSourceInput::webapiRunGet(
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
return 200; return 200;
} }
@ -397,8 +398,9 @@ int TestSourceInput::webapiRunGet(
int TestSourceInput::webapiRun( int TestSourceInput::webapiRun(
bool run, bool run,
SWGSDRangel::SWGDeviceState& response, SWGSDRangel::SWGDeviceState& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
m_deviceAPI->getDeviceEngineStateStr(*response.getState()); m_deviceAPI->getDeviceEngineStateStr(*response.getState());
MsgStartStop *message = MsgStartStop::create(run); MsgStartStop *message = MsgStartStop::create(run);
m_inputMessageQueue.push(message); m_inputMessageQueue.push(message);
@ -414,8 +416,9 @@ int TestSourceInput::webapiRun(
int TestSourceInput::webapiSettingsGet( int TestSourceInput::webapiSettingsGet(
SWGSDRangel::SWGDeviceSettings& response, SWGSDRangel::SWGDeviceSettings& response,
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
response.setTestSourceSettings(new SWGSDRangel::SWGTestSourceSettings()); response.setTestSourceSettings(new SWGSDRangel::SWGTestSourceSettings());
response.getTestSourceSettings()->init(); response.getTestSourceSettings()->init();
webapiFormatDeviceSettings(response, m_settings); webapiFormatDeviceSettings(response, m_settings);
@ -426,8 +429,9 @@ int TestSourceInput::webapiSettingsPutPatch(
bool force, bool force,
const QStringList& deviceSettingsKeys, const QStringList& deviceSettingsKeys,
SWGSDRangel::SWGDeviceSettings& response, // query + response SWGSDRangel::SWGDeviceSettings& response, // query + response
QString& errorMessage __attribute__((unused))) QString& errorMessage)
{ {
(void) errorMessage;
TestSourceSettings settings = m_settings; TestSourceSettings settings = m_settings;
if (deviceSettingsKeys.contains("centerFrequency")) { if (deviceSettingsKeys.contains("centerFrequency")) {

View File

@ -387,7 +387,7 @@ void DecimatorsU<StorageType, T, SdrBits, InputBits, Shift>::decimate4_sup(Sampl
} }
template<typename StorageType, typename T, uint SdrBits, uint InputBits, int Shift> template<typename StorageType, typename T, uint SdrBits, uint InputBits, int Shift>
void DecimatorsU<StorageType, T, SdrBits, InputBits, Shift>::decimate8_inf(SampleVector::iterator* it, const T* buf __attribute__((unused)), qint32 len) void DecimatorsU<StorageType, T, SdrBits, InputBits, Shift>::decimate8_inf(SampleVector::iterator* it, const T* buf, qint32 len)
{ {
StorageType buf2[16], buf4[8], buf8[4]; StorageType buf2[16], buf4[8], buf8[4];
@ -463,7 +463,7 @@ void DecimatorsU<StorageType, T, SdrBits, InputBits, Shift>::decimate8_inf(Sampl
} }
template<typename StorageType, typename T, uint SdrBits, uint InputBits, int Shift> template<typename StorageType, typename T, uint SdrBits, uint InputBits, int Shift>
void DecimatorsU<StorageType, T, SdrBits, InputBits, Shift>::decimate8_sup(SampleVector::iterator* it, const T* buf __attribute__((unused)), qint32 len) void DecimatorsU<StorageType, T, SdrBits, InputBits, Shift>::decimate8_sup(SampleVector::iterator* it, const T* buf, qint32 len)
{ {
StorageType buf2[16], buf4[8], buf8[4]; StorageType buf2[16], buf4[8], buf8[4];

View File

@ -134,8 +134,8 @@ void DSPEngine::setDVSerialSupport(bool support)
} }
} }
#else #else
void DSPEngine::setDVSerialSupport(bool support __attribute__((unused))) void DSPEngine::setDVSerialSupport(bool support)
{} { (void) support; }
#endif #endif
bool DSPEngine::hasDVSerialSupport() bool DSPEngine::hasDVSerialSupport()
@ -153,8 +153,8 @@ void DSPEngine::getDVSerialNames(std::vector<std::string>& deviceNames)
m_dvSerialEngine.getDevicesNames(deviceNames); m_dvSerialEngine.getDevicesNames(deviceNames);
} }
#else #else
void DSPEngine::getDVSerialNames(std::vector<std::string>& deviceNames __attribute((unused))) void DSPEngine::getDVSerialNames(std::vector<std::string>& deviceNames)
{} { (void) deviceNames; }
#endif #endif
#ifdef DSD_USE_SERIALDV #ifdef DSD_USE_SERIALDV
@ -171,12 +171,20 @@ void DSPEngine::pushMbeFrame(
} }
#else #else
void DSPEngine::pushMbeFrame( void DSPEngine::pushMbeFrame(
const unsigned char *mbeFrame __attribute((unused)), const unsigned char *mbeFrame,
int mbeRateIndex __attribute((unused)), int mbeRateIndex,
int mbeVolumeIndex __attribute((unused)), int mbeVolumeIndex,
unsigned char channels __attribute((unused)), unsigned char channels,
bool useHP __attribute((unused)), bool useHP,
int upsampling __attribute((unused)), int upsampling,
AudioFifo *audioFifo __attribute((unused))) AudioFifo *audioFifo)
{} {
(void) mbeFrame;
(void) mbeRateIndex;
(void) mbeVolumeIndex;
(void) channels;
(void) useHP;
(void) upsampling;
(void) audioFifo;
}
#endif #endif