mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-26 13:26:24 -04:00
Fixed -Wunused-parameter warnings
This commit is contained in:
@@ -45,6 +45,7 @@ int BladeRF2MIMOWebAPIAdapter::webapiSettingsPutPatch(
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) force; // no action
|
||||
(void) errorMessage;
|
||||
BladeRF2MIMO::webapiUpdateDeviceSettings(m_settings, deviceSettingsKeys, response);
|
||||
return 200;
|
||||
|
||||
@@ -1753,6 +1753,7 @@ int LimeSDRMIMO::webapiRunGet(
|
||||
SWGSDRangel::SWGDeviceState& response,
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) subsystemIndex;
|
||||
(void) errorMessage;
|
||||
m_deviceAPI->getDeviceEngineStateStr(*response.getState());
|
||||
return 200;
|
||||
@@ -2334,4 +2335,4 @@ void LimeSDRMIMO::networkManagerFinished(QNetworkReply *reply)
|
||||
}
|
||||
|
||||
reply->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,9 +43,9 @@ int LimeSDRMIMOWebAPIAdapter::webapiSettingsPutPatch(
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
(void) force;
|
||||
(void) deviceSettingsKeys;
|
||||
(void) response;
|
||||
(void) errorMessage;
|
||||
return 501;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ void MetisMISO::setSourceCenterFrequency(qint64 centerFrequency, int index)
|
||||
|
||||
if (index < MetisMISOSettings::m_maxReceivers)
|
||||
{
|
||||
settings.m_rxCenterFrequencies[index];
|
||||
settings.m_rxCenterFrequencies[index] = centerFrequency;
|
||||
|
||||
MsgConfigureMetisMISO* message = MsgConfigureMetisMISO::create(settings, false);
|
||||
m_inputMessageQueue.push(message);
|
||||
|
||||
@@ -45,6 +45,7 @@ int MetisMISOWebAPIAdapter::webapiSettingsPutPatch(
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) force; // no action
|
||||
(void) errorMessage;
|
||||
MetisMISO::webapiUpdateDeviceSettings(m_settings, deviceSettingsKeys, response);
|
||||
return 200;
|
||||
|
||||
@@ -45,6 +45,7 @@ int TestMIWebAPIAdapter::webapiSettingsPutPatch(
|
||||
SWGSDRangel::SWGDeviceSettings& response, // query + response
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) force; // no action
|
||||
(void) errorMessage;
|
||||
TestMI::webapiUpdateDeviceSettings(m_settings, deviceSettingsKeys, response);
|
||||
return 200;
|
||||
|
||||
@@ -155,6 +155,7 @@ const QString& TestMOSync::getDeviceDescription() const
|
||||
|
||||
int TestMOSync::getSourceSampleRate(int index) const
|
||||
{
|
||||
(void) index;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -424,4 +425,4 @@ void TestMOSync::webapiUpdateDeviceSettings(
|
||||
if (deviceSettingsKeys.contains("sampleRate")) {
|
||||
settings.m_sampleRate = response.getTestMoSyncSettings()->getSampleRate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -983,7 +983,7 @@ bool XTRXMIMO::applySettings(const XTRXMIMOSettings& settings, bool force)
|
||||
m_settings.m_rxDevSampleRate,
|
||||
DeviceSampleSource::FrequencyShiftScheme::FSHIFT_STD,
|
||||
false);
|
||||
setRxDeviceCenterFrequency(m_deviceShared.m_dev->getDevice(), deviceCenterFrequency, 0);
|
||||
setRxDeviceCenterFrequency(m_deviceShared.m_dev->getDevice(), deviceCenterFrequency);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1083,7 +1083,7 @@ bool XTRXMIMO::applySettings(const XTRXMIMOSettings& settings, bool force)
|
||||
DeviceSampleSink::FC_POS_CENTER,
|
||||
m_settings.m_txDevSampleRate,
|
||||
false);
|
||||
setTxDeviceCenterFrequency(m_deviceShared.m_dev->getDevice(), deviceCenterFrequency, 0);
|
||||
setTxDeviceCenterFrequency(m_deviceShared.m_dev->getDevice(), deviceCenterFrequency);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1271,14 +1271,14 @@ void XTRXMIMO::getLPRange(float& minF, float& maxF, float& stepF) const
|
||||
minF, maxF, stepF);
|
||||
}
|
||||
|
||||
void XTRXMIMO::setRxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz, int loPpmTenths)
|
||||
void XTRXMIMO::setRxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz)
|
||||
{
|
||||
if (dev)
|
||||
{
|
||||
if (xtrx_tune(dev,
|
||||
XTRX_TUNE_RX_FDD,
|
||||
freq_hz,
|
||||
0) < 0) {
|
||||
nullptr) < 0) {
|
||||
qCritical("XTRXMIMO::setRxDeviceCenterFrequency: could not set Rx frequency to %llu", freq_hz);
|
||||
} else {
|
||||
qDebug("XTRXMIMO::setRxDeviceCenterFrequency: Rx frequency set to %llu", freq_hz);
|
||||
@@ -1286,14 +1286,14 @@ void XTRXMIMO::setRxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz, int lo
|
||||
}
|
||||
}
|
||||
|
||||
void XTRXMIMO::setTxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz, int loPpmTenths)
|
||||
void XTRXMIMO::setTxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz)
|
||||
{
|
||||
if (dev)
|
||||
{
|
||||
if (xtrx_tune(dev,
|
||||
XTRX_TUNE_TX_FDD,
|
||||
freq_hz,
|
||||
0) < 0) {
|
||||
nullptr) < 0) {
|
||||
qCritical("XTRXMIMO::setTxDeviceCenterFrequency: could not set Tx frequency to %llu", freq_hz);
|
||||
} else {
|
||||
qDebug("XTRXMIMO::setTxDeviceCenterFrequency: Tx frequency set to %llu", freq_hz);
|
||||
|
||||
@@ -286,8 +286,8 @@ private:
|
||||
void applyGainLNA(unsigned int channel, double gain);
|
||||
void applyGainTIA(unsigned int channel, double gain);
|
||||
void applyGainPGA(unsigned int channel, double gain);
|
||||
void setRxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz, int loPpmTenths);
|
||||
void setTxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz, int loPpmTenths);
|
||||
void setRxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz);
|
||||
void setTxDeviceCenterFrequency(xtrx_dev *dev, quint64 freq_hz);
|
||||
|
||||
void webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, const XTRXMIMOSettings& settings, bool force);
|
||||
void webapiReverseSendStartStop(bool start);
|
||||
|
||||
Reference in New Issue
Block a user