You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/10/29 15:20:27 UTC
svn commit: r1403307 - /subversion/trunk/configure.ac
Author: stefan2
Date: Mon Oct 29 14:20:27 2012
New Revision: 1403307
URL: http://svn.apache.org/viewvc?rev=1403307&view=rev
Log:
In maintainer mode, -Wall will cause GCC to complain about
not being able to verify printf & friends formats when they
are not given as literals. Since this is simply informative
and we can't fix anything there, let's disable the warning
for an improved SNR.
* configure.ac
(maintainer_mode): disable -Wformat-nonliteral in GCC
Modified:
subversion/trunk/configure.ac
Modified: subversion/trunk/configure.ac
URL: http://svn.apache.org/viewvc/subversion/trunk/configure.ac?rev=1403307&r1=1403306&r2=1403307&view=diff
==============================================================================
--- subversion/trunk/configure.ac (original)
+++ subversion/trunk/configure.ac Mon Oct 29 14:20:27 2012
@@ -1017,6 +1017,11 @@ AS_HELP_STRING([--enable-maintainer-mode
CFLAGS="-Wno-system-headers $CFLAGS_KEEP"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]])], [CFLAGS_KEEP="$CFLAGS"])
+ dnl Put this flag behind -Wall:
+
+ CFLAGS="$CFLAGS_KEEP -Wno-format-nonliteral"
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]])], [CFLAGS_KEEP="$CFLAGS"])
+
AC_LANG_POP([C])
CFLAGS="$CFLAGS_KEEP"
fi