Whamcloud - gitweb
Update WFLAGS to suppress spurious warning messages
authorTheodore Ts'o <tytso@mit.edu>
Wed, 15 Nov 2006 04:40:19 +0000 (23:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 15 Nov 2006 04:40:19 +0000 (23:40 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
ChangeLog
MCONFIG.in

index 46e7dbb..f0f10ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-11-14  Theodore Tso  <tytso@mit.edu>
+
+       * MCONFIG.in (WFLAGS): Add -fstrict-aliasing and
+               -Wno-variadic-macros.  Also use -std=c99 and
+               -D_XOPEN_SOURCE=600 and -D_GNU_SOURCE to suppress
+               spurious warnings.
+
 2006-11-12  Theodore Tso  <tytso@mit.edu>
 
        * configure, configure.in (E2FSPROGS_PKGVER): Define
index bd327d6..c3e7685 100644 (file)
@@ -121,12 +121,13 @@ $(top_builddir)/util/subst:
 # Run make gcc-wall to do a build with warning messages.
 #
 #
-WFLAGS=                -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \
+WFLAGS=                -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
+                       -pedantic $(WFLAGS_EXTRA) \
                        -Wall -W -Wwrite-strings -Wpointer-arith \
-                       -Wcast-qual -Wcast-align  \
+                       -Wcast-qual -Wcast-align -Wno-variadic-macros \
                        -Wstrict-prototypes -Wmissing-prototypes \
                        -Wformat-security  -Wformat-nonliteral \
-                       -Wmissing-format-attribute \
+                       -Wmissing-format-attribute -O2 -Wstrict-aliasing \
                        -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
                        -UENABLE_NLS