Skip to content

Commit d4e4ff1

Browse files
committed
-Wformat is needed by gcc 4.8 (closes #17547)
1 parent e68b168 commit d4e4ff1

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ Library
9595
Build
9696
-----
9797

98+
- Issue #17547: In configure, explicitly pass -Wformat for the benefit for GCC
99+
4.8.
100+
98101
- Issue #17682: Add the _io module to Modules/Setup.dist (commented out).
99102

100103
- Issue #17086: Search the include and library directories provided by the

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6253,7 +6253,7 @@ then
62536253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
62546254
$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
62556255
save_CFLAGS=$CFLAGS
6256-
CFLAGS="$CFLAGS -Werror"
6256+
CFLAGS="$CFLAGS -Werror -Wformat"
62576257
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62586258
/* end confdefs.h. */
62596259

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ if test "$GCC" = "yes"
13261326
then
13271327
AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
13281328
save_CFLAGS=$CFLAGS
1329-
CFLAGS="$CFLAGS -Werror"
1329+
CFLAGS="$CFLAGS -Werror -Wformat"
13301330
AC_COMPILE_IFELSE([
13311331
AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
13321332
],[

0 commit comments

Comments
 (0)