configure.ac: always enable distcheck warning errors

This commit is contained in:
John Hood
2015-10-29 14:32:17 -04:00
parent 44f9cca396
commit caab7a7d88
+3 -4
View File
@@ -40,12 +40,11 @@ AC_ARG_ENABLE([compile-warnings],
PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations"
;; ;;
distcheck) distcheck)
if test "$(uname -s)" = Linux; then
WARNING_CXXFLAGS="-Wall -Werror" WARNING_CXXFLAGS="-Wall -Werror"
else
WARNING_CXXFLAGS="-Wall"
fi
PICKY_CXXFLAGS="-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations" 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]) AC_MSG_ERROR([Unknown argument '$enableval' to --enable-compile-warnings])