]> err.no Git - varnish/commitdiff
Tweak DEVELOPER_CFLAGS.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 May 2007 11:06:38 +0000 (11:06 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 May 2007 11:06:38 +0000 (11:06 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1407 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index 8015f58742e374ad5e2c102e0b5ee0fd0e765108..cff31b08daf14efd23383944fb2d8826e8b4d7a7 100644 (file)
@@ -101,7 +101,13 @@ AC_CHECK_FUNCS([poll])
 
 # Now that we're done using the compiler to look for functions and
 # libraries, set CFLAGS to what we want them to be for our own code
-DEVELOPER_CFLAGS="-Wall -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
+
+# This corresponds to FreeBSD's WARNS level 6
+DEVELOPER_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
+
+# Turn off warnings for two issues which occur frequently in our code
+DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -Wno-missing-field-initializers -Wno-sign-compare"
+
 AC_ARG_ENABLE(developer-warnings,
        AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
        CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")