Make more compiler warnings into errors

In particular, I want -Werror=format=2 to catch format string bugs.
This commit is contained in:
Colin Walters 2012-06-27 20:26:08 -04:00
parent d596615bab
commit 667c3bcb10
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,12 @@ AM_PROG_CC_C_O
changequote(,)dnl changequote(,)dnl
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then
WARN_CFLAGS="-Wall -Werror=missing-prototypes" WARN_CFLAGS="-Wall -Wstrict-prototypes -Werror=missing-prototypes \
-Werror=implicit-function-declaration \
-Werror=pointer-arith -Werror=init-self -Werror=format=2 \
-Werror=format-security \
-Werror=missing-include-dirs -Werror=aggregate-return \
-Werror=declaration-after-statement"
fi fi
changequote([,])dnl changequote([,])dnl
AC_SUBST(WARN_CFLAGS) AC_SUBST(WARN_CFLAGS)