Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit feb5149

Browse files
committed
-Wformat is needed by gcc 4.8 (closes #17547)
1 parent 8b0e984 commit feb5149

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ Documentation
223223
- Issue #6696: add documentation for the Profile objects, and improve
224224
profile/cProfile docs. Patch by Tom Pinckney.
225225

226+
Build
227+
-----
228+
229+
- Issue #17547: In configure, explicitly pass -Wformat for the benefit for GCC
230+
4.8.
231+
226232

227233
What's New in Python 3.3.1?
228234
===========================

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6525,7 +6525,7 @@ then
65256525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
65266526
$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
65276527
save_CFLAGS=$CFLAGS
6528-
CFLAGS="$CFLAGS -Werror"
6528+
CFLAGS="$CFLAGS -Werror -Wformat"
65296529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65306530
/* end confdefs.h. */
65316531

configure.ac

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

pyconfig.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,9 +1187,6 @@
11871187
/* Define if setpgrp() must be called as setpgrp(0, 0). */
11881188
#undef SETPGRP_HAVE_ARG
11891189

1190-
/* Define this to be extension of shared libraries (including the dot!). */
1191-
#undef SHLIB_EXT
1192-
11931190
/* Define if i>>j for signed int i does not extend the sign bit when i < 0 */
11941191
#undef SIGNED_RIGHT_SHIFT_ZERO_FILLS
11951192

0 commit comments

Comments
 (0)