Windows: MSVC2017: fixed some attribute unused cases

pull/263/head
f4exb 2018-11-12 15:48:41 +01:00
rodzic 127178f44c
commit cdacf51bfb
2 zmienionych plików z 2 dodań i 9 usunięć

Wyświetl plik

@ -30,11 +30,7 @@ public:
protected:
DeviceHackRF();
DeviceHackRF(const DeviceHackRF&) {}
#ifdef _MSC_VER
DeviceHackRF& operator=(const DeviceHackRF& other) { return *this; }
#else
DeviceHackRF& operator=(const DeviceHackRF& other __attribute__((unused))) { return *this; }
#endif
DeviceHackRF& operator=(const DeviceHackRF& other) { (void) other; return *this; }
~DeviceHackRF();
private:
static hackrf_device *open_hackrf_from_sequence(int sequence);

Wyświetl plik

@ -363,12 +363,9 @@ void ArgInfoGUI::on_argEdit_editingFinished()
emit valueChanged();
}
#ifdef _MSC_VER
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();
bool ok = false;