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