summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-22 01:15:31 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-22 01:16:04 +0200
commitbb61eeb6aecab1492b62426433af7c3c963a060b (patch)
treeb9a27865b940f78e44d0af351f329c704f5e9117
parentac7c7302ef096f664f5b3ab9f1fe407b93f2d115 (diff)
Restore -Wunused-parameter warning
-rw-r--r--configure.ac2
-rw-r--r--src/proxy.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c0ca729..53d0306 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,7 @@ CXXFLAGS="$OLDCXXFLAGS"
AX_CXXFLAGS_WARN_ALL([DEFINES])
AX_APPEND_COMPILE_FLAGS([-fno-rtti -fno-exceptions],DEFINES)
-AX_APPEND_COMPILE_FLAGS([-Wextra -Wno-unused-parameter -Wno-missing-field-initializers],DEFINES)
+AX_APPEND_COMPILE_FLAGS([-Wextra -Wno-missing-field-initializers],DEFINES)
AC_ARG_ENABLE([debug], AC_HELP_STRING([compile with debug options]),
if test "x$enableval" = "xyes"; then
DEFINES="$DEFINES -g -O0 -DDEBUG"
diff --git a/src/proxy.cc b/src/proxy.cc
index fdb6df0..639bb64 100644
--- a/src/proxy.cc
+++ b/src/proxy.cc
@@ -1536,7 +1536,7 @@ void ProxyImpl::monitor_error(size_t index, uint16_t status_code,
}
bool ProxyImpl::support_monitor_version(
- size_t index, std::string const& version) {
+ size_t UNUSED(index), std::string const& version) {
if (version.empty()) return false;
// TODO: Actually do some version check here
return version.compare(VERSION) == 0;