]> granicus.if.org Git - python/commitdiff
-Wformat is needed by gcc 4.8 (closes #17547)
authorBenjamin Peterson <benjamin@python.org>
Sat, 11 May 2013 18:00:05 +0000 (13:00 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 11 May 2013 18:00:05 +0000 (13:00 -0500)
Misc/NEWS
configure
configure.ac
pyconfig.h.in

index bccd7f66e63e6d3cf4bed21efd5ab9b58c9f3cac..c74107622a5a876f5118515f30e8a3f4f9789bb2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -223,6 +223,12 @@ Documentation
 - Issue #6696: add documentation for the Profile objects, and improve
   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?
 ===========================
index d3214abb8ca0265bd1a464096cba2b18b28ff181..ffa089ca54cc2c295b1075136f8acc6a6b5ff851 100755 (executable)
--- a/configure
+++ b/configure
@@ -6525,7 +6525,7 @@ then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
   save_CFLAGS=$CFLAGS
-  CFLAGS="$CFLAGS -Werror"
+  CFLAGS="$CFLAGS -Werror -Wformat"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
index 6d54b162c9003eedfc77dc8760672f38dc30a8f0..9179fe64de4df3396b2ed86f8910978f3fe345e4 100644 (file)
@@ -1331,7 +1331,7 @@ if test "$GCC" = "yes"
 then
   AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
   save_CFLAGS=$CFLAGS
-  CFLAGS="$CFLAGS -Werror"
+  CFLAGS="$CFLAGS -Werror -Wformat"
   AC_COMPILE_IFELSE([
     AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
   ],[
index 10e2c91dc5d659174eb112a939ba0ee658e20339..cbbc42d99f58a26e5bb8289492e1f0eb774467c6 100644 (file)
 /* Define if setpgrp() must be called as setpgrp(0, 0). */
 #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 */
 #undef SIGNED_RIGHT_SHIFT_ZERO_FILLS