-Wformat is needed by gcc 4.8 (closes #17547)

This commit is contained in:
Benjamin Peterson 2013-05-11 13:00:05 -05:00
parent 8b0e98426d
commit feb5149244
4 changed files with 8 additions and 5 deletions

View file

@ -1331,7 +1331,7 @@ if test "$GCC" = "yes"
then
AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror"
CFLAGS="$CFLAGS -Werror -Wformat"
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
],[