mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-29 23:13:19 -04:00
Windows: MSVC2017: fixed more attribute unused cases (2)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user