The following commit has been merged in the master branch:
commit 1d099a33185ef2cd8ce461175e93641a56462b43
Author: Guillem Jover <[email protected]>
Date:   Sat Sep 26 14:14:22 2009 +0200

    build: Refactor warning flags into a new WFLAGS variable

diff --git a/m4/compiler.m4 b/m4/compiler.m4
index f5f84ab..937457a 100644
--- a/m4/compiler.m4
+++ b/m4/compiler.m4
@@ -8,12 +8,13 @@ AC_DEFUN([DPKG_COMPILER_WARNINGS],
 [AC_ARG_ENABLE(compiler-warnings,
        AS_HELP_STRING([--enable-compiler-warnings],
                       [Enable additional compiler warnings]),
-[if test "x$enable_compiler_warnings" = "xyes"; then
+[WFLAGS="-Wall -Werror"
+if test "x$enable_compiler_warnings" = "xyes"; then
        if test "x$GCC" = "xyes"; then
-                CFLAGS="-Wall -Werror $CFLAGS"
+               CFLAGS="$WFLAGS $CFLAGS"
         fi
        if test "x$GXX" = "xyes"; then
-               CXXFLAGS="-Wall -Werror $CXXFLAGS"
+               CXXFLAGS="$WFLAGS $CXXFLAGS"
        fi
 fi])dnl
 ])

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to