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/proxy.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/proxy.cc') 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; -- cgit v1.2.3-70-g09d2