Daniel Kurtz | 6e688d6 | 2019-05-21 13:31:42 -0600 | [diff] [blame] | 1 | https://bugs.python.org/issue25397 |
| 2 | |
| 3 | improve 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> |