diff --git a/sdrgui/device/devicegui.h b/sdrgui/device/devicegui.h index 94eb2a4c6..c376c2c7e 100644 --- a/sdrgui/device/devicegui.h +++ b/sdrgui/device/devicegui.h @@ -81,7 +81,7 @@ public: void setCurrentDeviceIndex(int index) { m_currentDeviceIndex = index; } //!< index in plugins list void setChannelNames(const QStringList& channelNames) { m_channelAddDialog.addChannelNames(channelNames); } DeviceUISet* getDeviceUISet() { return m_deviceUISet; } - virtual void setReplayTime(float time) {} //!< Not supported by all devices + virtual void setReplayTime(float time) { (void) time; } //!< Not supported by all devices protected: void closeEvent(QCloseEvent *event) override; diff --git a/sdrgui/device/deviceuiset.cpp b/sdrgui/device/deviceuiset.cpp index 53bde72f2..0de391efc 100644 --- a/sdrgui/device/deviceuiset.cpp +++ b/sdrgui/device/deviceuiset.cpp @@ -830,6 +830,8 @@ int DeviceUISet::webapiSpectrumServerDelete(SWGSDRangel::SWGSuccessResponse& res void DeviceUISet::onTimeSelected(int deviceSetIndex, float time) { + (void) deviceSetIndex; + if (m_deviceGUI) { m_deviceGUI->setReplayTime(time); }