mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-21 04:58:38 -05:00
Windows: MSVC2017: fixed some attribute unused cases
This commit is contained in:
parent
127178f44c
commit
cdacf51bfb
@ -30,11 +30,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
DeviceHackRF();
|
DeviceHackRF();
|
||||||
DeviceHackRF(const DeviceHackRF&) {}
|
DeviceHackRF(const DeviceHackRF&) {}
|
||||||
#ifdef _MSC_VER
|
DeviceHackRF& operator=(const DeviceHackRF& other) { (void) other; return *this; }
|
||||||
DeviceHackRF& operator=(const DeviceHackRF& other) { return *this; }
|
|
||||||
#else
|
|
||||||
DeviceHackRF& operator=(const DeviceHackRF& other __attribute__((unused))) { return *this; }
|
|
||||||
#endif
|
|
||||||
~DeviceHackRF();
|
~DeviceHackRF();
|
||||||
private:
|
private:
|
||||||
static hackrf_device *open_hackrf_from_sequence(int sequence);
|
static hackrf_device *open_hackrf_from_sequence(int sequence);
|
||||||
|
@ -363,12 +363,9 @@ void ArgInfoGUI::on_argEdit_editingFinished()
|
|||||||
emit valueChanged();
|
emit valueChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
void ArgInfoGUI::on_argCombo_currentIndexChanged(int index)
|
void ArgInfoGUI::on_argCombo_currentIndexChanged(int index)
|
||||||
#else
|
|
||||||
void ArgInfoGUI::on_argCombo_currentIndexChanged(int index __attribute__((unused)))
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
|
(void) index;
|
||||||
QVariant v = ui->argCombo->currentData();
|
QVariant v = ui->argCombo->currentData();
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user