Commit d4e4ff13 authored by Benjamin Peterson's avatar Benjamin Peterson

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

parent e68b1687
...@@ -95,6 +95,9 @@ Library ...@@ -95,6 +95,9 @@ Library
Build Build
----- -----
- Issue #17547: In configure, explicitly pass -Wformat for the benefit for GCC
4.8.
- Issue #17682: Add the _io module to Modules/Setup.dist (commented out). - Issue #17682: Add the _io module to Modules/Setup.dist (commented out).
- Issue #17086: Search the include and library directories provided by the - Issue #17086: Search the include and library directories provided by the
......
...@@ -6253,7 +6253,7 @@ then ...@@ -6253,7 +6253,7 @@ then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
save_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror" CFLAGS="$CFLAGS -Werror -Wformat"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
......
...@@ -1326,7 +1326,7 @@ if test "$GCC" = "yes" ...@@ -1326,7 +1326,7 @@ if test "$GCC" = "yes"
then then
AC_MSG_CHECKING(whether gcc supports ParseTuple __format__) AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
save_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror" CFLAGS="$CFLAGS -Werror -Wformat"
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]]) AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
],[ ],[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment