mirror of
https://github.com/python/cpython.git
synced 2025-11-28 14:11:15 +00:00
-Wformat is needed by gcc 4.8 (closes #17547)
This commit is contained in:
parent
8b0e98426d
commit
feb5149244
4 changed files with 8 additions and 5 deletions
|
|
@ -223,6 +223,12 @@ Documentation
|
||||||
- Issue #6696: add documentation for the Profile objects, and improve
|
- Issue #6696: add documentation for the Profile objects, and improve
|
||||||
profile/cProfile docs. Patch by Tom Pinckney.
|
profile/cProfile docs. Patch by Tom Pinckney.
|
||||||
|
|
||||||
|
Build
|
||||||
|
-----
|
||||||
|
|
||||||
|
- Issue #17547: In configure, explicitly pass -Wformat for the benefit for GCC
|
||||||
|
4.8.
|
||||||
|
|
||||||
|
|
||||||
What's New in Python 3.3.1?
|
What's New in Python 3.3.1?
|
||||||
===========================
|
===========================
|
||||||
|
|
|
||||||
2
configure
vendored
2
configure
vendored
|
|
@ -6525,7 +6525,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. */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1331,7 +1331,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)));]], [[]])
|
||||||
],[
|
],[
|
||||||
|
|
|
||||||
|
|
@ -1187,9 +1187,6 @@
|
||||||
/* Define if setpgrp() must be called as setpgrp(0, 0). */
|
/* Define if setpgrp() must be called as setpgrp(0, 0). */
|
||||||
#undef SETPGRP_HAVE_ARG
|
#undef SETPGRP_HAVE_ARG
|
||||||
|
|
||||||
/* Define this to be extension of shared libraries (including the dot!). */
|
|
||||||
#undef SHLIB_EXT
|
|
||||||
|
|
||||||
/* Define if i>>j for signed int i does not extend the sign bit when i < 0 */
|
/* Define if i>>j for signed int i does not extend the sign bit when i < 0 */
|
||||||
#undef SIGNED_RIGHT_SHIFT_ZERO_FILLS
|
#undef SIGNED_RIGHT_SHIFT_ZERO_FILLS
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue