r1407 - trunk/varnish-cache

des at projects.linpro.no des at projects.linpro.no
Fri May 11 13:06:38 CEST 2007


Author: des
Date: 2007-05-11 13:06:38 +0200 (Fri, 11 May 2007)
New Revision: 1407

Modified:
   trunk/varnish-cache/configure.ac
Log:
Tweak DEVELOPER_CFLAGS.


Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac	2007-05-11 11:06:03 UTC (rev 1406)
+++ trunk/varnish-cache/configure.ac	2007-05-11 11:06:38 UTC (rev 1407)
@@ -101,7 +101,13 @@
 
 # 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}")




More information about the varnish-commit mailing list