subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441110 - /subversion/trunk/configure.ac
Date Thu, 31 Jan 2013 18:37:35 GMT
Author: stsp
Date: Thu Jan 31 18:37:35 2013
New Revision: 1441110

URL: http://svn.apache.org/viewvc?rev=1441110&view=rev
Log:
In the UNIX build, make some compiler warnings which we usually fix up
fatal build errors. This should help with catching these warnings on the
buildbots.

* configure.ac
  (CMAINTAINERFLAGS): Make -Wshadow, -Wunused, and -Wmissing-declarations
   fatal build errors.

Modified:
    subversion/trunk/configure.ac

Modified: subversion/trunk/configure.ac
URL: http://svn.apache.org/viewvc/subversion/trunk/configure.ac?rev=1441110&r1=1441109&r2=1441110&view=diff
==============================================================================
--- subversion/trunk/configure.ac (original)
+++ subversion/trunk/configure.ac Thu Jan 31 18:37:35 2013
@@ -1027,7 +1027,11 @@ AS_HELP_STRING([--enable-maintainer-mode
         CFLAGS="$CFLAGS_KEEP"
 
         dnl Add flags that all versions of GCC (should) support
-        CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar
-Wredundant-decls -Wnested-externs -Winline -Wno-long-long $CMAINTAINERFLAGS"
+        CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wformat=2 -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wno-multichar -Wredundant-decls -Wnested-externs
-Winline -Wno-long-long $CMAINTAINERFLAGS"
+
+        dnl Add flags that all versions of GCC (should) support
+        dnl and which we want to treat as fatal build errors
+        CMAINTAINERFLAGS="-Werror=shadow -Werror=unused -Werror=missing-declarations $CMAINTAINERFLAGS"
       fi
       if test "$GXX" = "yes"; then
         AC_MSG_NOTICE([maintainer-mode: adding G++ warning flags])



Mime
View raw message