summaryrefslogtreecommitdiff
path: root/src/monitor-gui.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-29 01:48:01 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-29 01:48:01 +0200
commit8d58ffb022649fd8a28d2f74845fc8ca5c934029 (patch)
tree3ce6d5037e95192401a9490c9d13253101017764 /src/monitor-gui.cc
parentc974e4b5df40aec646a60c747f453d11a8e7587c (diff)
Remove attribute(__unused__) usage
Just omitting the parameter name is more portable and less to write
Diffstat (limited to 'src/monitor-gui.cc')
-rw-r--r--src/monitor-gui.cc12
1 files changed, 5 insertions, 7 deletions
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