summaryrefslogtreecommitdiff
path: root/src/monitor-cmd.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-cmd.cc
parentc974e4b5df40aec646a60c747f453d11a8e7587c (diff)
Remove attribute(__unused__) usage
Just omitting the parameter name is more portable and less to write
Diffstat (limited to 'src/monitor-cmd.cc')
-rw-r--r--src/monitor-cmd.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/monitor-cmd.cc b/src/monitor-cmd.cc
index 8aa8b99..b0caee3 100644
--- a/src/monitor-cmd.cc
+++ b/src/monitor-cmd.cc
@@ -51,15 +51,15 @@ public:
}
}
- void error(Monitor* UNUSED(monitor), std::string const& error) override {
+ void error(Monitor*, std::string const& error) override {
std::cerr << "# Error: " << error << std::endl;
}
- void package(Monitor* UNUSED(monitor), Package const& package) override {
+ void package(Monitor*, Package const& package) override {
packages_.insert(std::make_pair(package.id, package));
}
- void package_data(Monitor* UNUSED(monitor), uint32_t id,
+ void package_data(Monitor*, uint32_t id,
char const* data, size_t size, bool last) override {
auto it = packages_.find(id);
if (it == packages_.end()) {
@@ -143,12 +143,12 @@ private:
io::auto_pipe signal_pipe;
-void signal(int UNUSED(signum)) {
+void signal(int) {
io::write_all(signal_pipe.write(), "", 1);
std::cerr << "# Caught signal" << std::endl;
}
-void quit_loop(Looper* looper, int UNUSED(fd), uint8_t UNUSED(events)) {
+void quit_loop(Looper* looper, int, uint8_t) {
looper->quit();
}