blob: e337b3fad6e56e76f99f66386fe4f8cf2a14ce97 [file] [log] [blame]
Daniel Kurtz6e688d62019-05-21 13:31:42 -06001https://bugs.python.org/issue25397
2
3improve the cross-compile tests to be more focused
4
5--- a/configure.ac
6+++ b/configure.ac
7@@ -1339,7 +1339,7 @@ if test "$GCC" = "yes"
8 then
9 AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
10 save_CFLAGS=$CFLAGS
11- CFLAGS="$CFLAGS -Werror -Wformat"
12+ CFLAGS="$CFLAGS -Werror=format -Werror=ignored-attributes"
13 AC_COMPILE_IFELSE([
14 AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
15 ],[
16@@ -4458,7 +4458,7 @@ then
17 [ac_cv_have_long_long_format="cross -- assuming no"
18 if test x$GCC = xyes; then
19 save_CFLAGS=$CFLAGS
20- CFLAGS="$CFLAGS -Werror -Wformat"
21+ CFLAGS="$CFLAGS -Werror=format"
22 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
23 #include <stdio.h>
24 #include <stddef.h>