From 32a6790395e236b88e5dccf6a5daf7ea3c725cbe Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 22 Jan 2021 15:22:47 +0000 Subject: [PATCH] Fix compiler warnings --- plugins/feature/map/beacon.h | 1 - plugins/feature/map/mapgui.cpp | 2 +- plugins/feature/map/mapgui.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/feature/map/beacon.h b/plugins/feature/map/beacon.h index fba066e18..12542416d 100644 --- a/plugins/feature/map/beacon.h +++ b/plugins/feature/map/beacon.h @@ -130,7 +130,6 @@ struct Beacon { // Read data while (fgets(row, sizeof(row), file)) { - int id = 0; char *callsign = nullptr; size_t callsignLen = 0; char *frequencyString = nullptr; diff --git a/plugins/feature/map/mapgui.cpp b/plugins/feature/map/mapgui.cpp index 4fe23a0d9..ed5570cbb 100644 --- a/plugins/feature/map/mapgui.cpp +++ b/plugins/feature/map/mapgui.cpp @@ -543,7 +543,7 @@ void MapGUI::applySettings(bool force) } } -void MapGUI::on_maidenhead_clicked(bool checked) +void MapGUI::on_maidenhead_clicked() { MapMaidenheadDialog dialog; dialog.exec(); diff --git a/plugins/feature/map/mapgui.h b/plugins/feature/map/mapgui.h index 935540e97..5b8fcfd4a 100644 --- a/plugins/feature/map/mapgui.h +++ b/plugins/feature/map/mapgui.h @@ -365,7 +365,7 @@ private slots: void handleInputMessages(); void on_displayNames_clicked(bool checked=false); void on_find_returnPressed(); - void on_maidenhead_clicked(bool checked=false); + void on_maidenhead_clicked(); void on_deleteAll_clicked(); void on_displaySettings_clicked(); void on_mapTypes_currentIndexChanged(int index);