From bb61eeb6aecab1492b62426433af7c3c963a060b Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 22 Jul 2017 01:15:31 +0200 Subject: Restore -Wunused-parameter warning --- configure.ac | 2 +- src/proxy.cc | 2 +- 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; -- cgit v1.2.3-70-g09d2