summaryrefslogtreecommitdiff
path: root/src/proxy.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/proxy.cc
parentc974e4b5df40aec646a60c747f453d11a8e7587c (diff)
Remove attribute(__unused__) usage
Just omitting the parameter name is more portable and less to write
Diffstat (limited to 'src/proxy.cc')
-rw-r--r--src/proxy.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/proxy.cc b/src/proxy.cc
index 878b40c..3909541 100644
--- a/src/proxy.cc
+++ b/src/proxy.cc
@@ -88,7 +88,7 @@ public:
return *this;
}
- iterator operator++(int UNUSED(dummy)) {
+ iterator operator++(int) {
iterator ret(*this);
++(*this);
return ret;
@@ -1553,8 +1553,7 @@ void ProxyImpl::monitor_error(size_t index, uint16_t status_code,
}
}
-bool ProxyImpl::support_monitor_version(
- size_t UNUSED(index), std::string const& version) {
+bool ProxyImpl::support_monitor_version(size_t, std::string const& version) {
if (version.empty()) return false;
// TODO: Actually do some version check here
return version.compare(VERSION) == 0;