From 8d58ffb022649fd8a28d2f74845fc8ca5c934029 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 29 Jul 2017 01:48:01 +0200 Subject: Remove attribute(__unused__) usage Just omitting the parameter name is more portable and less to write --- src/monitor-gui.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/monitor-gui.cc') diff --git a/src/monitor-gui.cc b/src/monitor-gui.cc index 450e96d..4abdd21 100644 --- a/src/monitor-gui.cc +++ b/src/monitor-gui.cc @@ -373,7 +373,7 @@ class MonitorGui : GuiMenu::Listener, GuiMain::Listener, Monitor::Delegate, private: class ConnectFormListener : public GuiFormApply::Listener { public: - void changed(GuiForm* UNUSED(form), std::string const& UNUSED(id)) override { + void changed(GuiForm*, std::string const&) override { } bool about_to_close(GuiForm* form) override { @@ -556,7 +556,7 @@ private: #if HAVE_SSL class GenerateFormListener : public GuiFormApply::Listener { public: - void changed(GuiForm* UNUSED(form), std::string const& UNUSED(id)) override { + void changed(GuiForm*, std::string const&) override { } bool about_to_close(GuiForm* form) override { @@ -1322,17 +1322,15 @@ private: return ~size; } #else // HAVE_PCAP - static bool is_pcap(std::string const& UNUSED(file)) { + static bool is_pcap(std::string const&) { return false; } - static bool load_pcap(std::string const& UNUSED(file), - PackageList* UNUSED(packages)) { + static bool load_pcap(std::string const&, PackageList*) { return false; } - static bool save_pcap(PackageList const* UNUSED(packages), - std::string const& UNUSED(file)) { + static bool save_pcap(PackageList const*, std::string const&) { return false; } #endif // HAVE_PCAP -- cgit v1.2.3-70-g09d2