r278 - trunk/varnish-cache
des at projects.linpro.no
des at projects.linpro.no
Mon Jul 3 10:30:33 CEST 2006
Author: des
Date: 2006-07-03 10:30:33 +0200 (Mon, 03 Jul 2006)
New Revision: 278
Modified:
trunk/varnish-cache/configure.ac
Log:
Replace --enable-wall and --enable-pedantic with --enable-developer-warnings,
which is roughly equivalent to FreeBSD's WARNS level 5 or 6.
Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac 2006-07-01 05:44:04 UTC (rev 277)
+++ trunk/varnish-cache/configure.ac 2006-07-03 08:30:33 UTC (rev 278)
@@ -15,12 +15,10 @@
# Compiler flags (assume GCC).
# This section *must* come before AC_PROG_CC / AC_PROG_CPP.
CFLAGS="${CFLAGS:--O2}"
-AC_ARG_ENABLE(wall,
- AS_HELP_STRING([--enable-wall],[use -Wall (default is NO)]),
- CFLAGS="${CFLAGS} -Wall")
-AC_ARG_ENABLE(pedantic,
- AS_HELP_STRING([--enable-pedantic],[enable pedantic warnings (default is NO)]),
- CFLAGS="${CFLAGS} -pedantic")
+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"
+AC_ARG_ENABLE(developer-warnings,
+ AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
+ CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
AC_ARG_ENABLE(werror,
AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
CFLAGS="${CFLAGS} -Werror")
More information about the varnish-commit
mailing list