1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 08:54:49 -04:00

Fixed -Wunused-parameter warnings

This commit is contained in:
f4exb
2020-11-14 11:13:32 +01:00
parent f668863aed
commit 55eb6cc951
157 changed files with 290 additions and 237 deletions
+3 -4
View File
@@ -112,7 +112,7 @@ bool AFCWorker::handleMessage(const Message& cmd)
Feature::MsgChannelSettings& cfg = (Feature::MsgChannelSettings&) cmd;
SWGSDRangel::SWGChannelSettings *swgChannelSettings = cfg.getSWGSettings();
qDebug() << "AFCWorker::handleMessage: Feature::MsgChannelSettings:" << *swgChannelSettings->getChannelType();
processChannelSettings(cfg.getChannelAPI(), cfg.getChannelSettingsKeys(), swgChannelSettings);
processChannelSettings(cfg.getChannelAPI(), swgChannelSettings);
delete swgChannelSettings;
return true;
@@ -280,7 +280,6 @@ void AFCWorker::initTrackedDeviceSet(int deviceSetIndex)
void AFCWorker::processChannelSettings(
const ChannelAPI *channelAPI,
const QList<QString> &channelSettingsKeys,
SWGSDRangel::SWGChannelSettings *swgChannelSettings)
{
MainCore *mainCore = MainCore::instance();
@@ -322,7 +321,7 @@ void AFCWorker::processChannelSettings(
}
}
bool AFCWorker::updateChannelOffset(ChannelAPI *channelAPI, int direction, int offset, unsigned int blockCount)
bool AFCWorker::updateChannelOffset(ChannelAPI *channelAPI, int direction, int offset)
{
SWGSDRangel::SWGChannelSettings swgChannelSettings;
SWGSDRangel::SWGErrorResponse errorResponse;
@@ -419,7 +418,7 @@ void AFCWorker::updateTarget()
}
// adjust tracker offset
if (updateChannelOffset(m_freqTracker, 0, m_trackerChannelOffset + correction, 1)) {
if (updateChannelOffset(m_freqTracker, 0, m_trackerChannelOffset + correction)) {
m_trackerChannelOffset += correction;
}