configure.ac: always enable distcheck warning errors
This commit is contained in:
+3
-4
@@ -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
|
||||
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])
|
||||
|
||||
Reference in New Issue
Block a user