]> err.no Git - varnish/commitdiff
Replace --enable-wall and --enable-pedantic with --enable-developer-warnings,
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Jul 2006 08:30:33 +0000 (08:30 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Jul 2006 08:30:33 +0000 (08:30 +0000)
which is roughly equivalent to FreeBSD's WARNS level 5 or 6.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@278 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index 1113ff4cf39f2e84c9e39605e8df27160811a934..5eeee21807019aa83b54cf96aa53393785deeb86 100644 (file)
@@ -15,12 +15,10 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 # 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")