From caab7a7d8897dcd94d1daa178527922cdf162765 Mon Sep 17 00:00:00 2001 From: John Hood Date: Thu, 29 Oct 2015 14:32:17 -0400 Subject: [PATCH] configure.ac: always enable distcheck warning errors --- configure.ac | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index a64e818..b1c2937 100644 --- a/configure.ac +++ b/configure.ac @@ -40,12 +40,11 @@ AC_ARG_ENABLE([compile-warnings], PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" ;; distcheck) - if test "$(uname -s)" = Linux; then - WARNING_CXXFLAGS="-Wall -Werror" - else - WARNING_CXXFLAGS="-Wall" - fi + WARNING_CXXFLAGS="-Wall -Werror" PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" + if test "$(uname -s)" != Linux; then + PICKY_CXXFLAGS="${PICKY_CXXFLAGS} -Wno-error=unused-parameter" + fi ;; *) AC_MSG_ERROR([Unknown argument '$enableval' to --enable-compile-warnings])