The following commit has been merged in the master branch:
commit b4284af48ce78dbfa34b20004b9e1ab268063188
Author: Guillem Jover <[email protected]>
Date:   Mon Feb 8 18:45:12 2010 +0100

    build: Add more warnings to --enable-compiler-warnings

diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
index f3f1b13..db68e6f 100644
--- a/m4/dpkg-compiler.m4
+++ b/m4/dpkg-compiler.m4
@@ -9,13 +9,19 @@ AC_DEFUN([DPKG_COMPILER_WARNINGS],
 [AC_ARG_ENABLE(compiler-warnings,
        AS_HELP_STRING([--enable-compiler-warnings],
                       [Enable additional compiler warnings]),
-[WFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers"
+[WFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers \
+        -Wmissing-declarations -Wmissing-format-attribute \
+        -Wvla -Winit-self -Wwrite-strings -Wcast-align"
+WCFLAGS="-Wdeclaration-after-statement -Wnested-externs -Wbad-function-cast \
+        -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition"
+# Temporarily here until #542031 gets fixed in ncurses
+WCXXFLAGS="-Wno-unused-value"
 if test "x$enable_compiler_warnings" = "xyes"; then
        if test "x$GCC" = "xyes"; then
-               CFLAGS="$WFLAGS $CFLAGS"
+               CFLAGS="$WFLAGS $WCFLAGS $CFLAGS"
         fi
        if test "x$GXX" = "xyes"; then
-               CXXFLAGS="$WFLAGS $CXXFLAGS"
+               CXXFLAGS="$WFLAGS $WCXXFLAGS $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