From 33bd4c63d6a59b8cd8af23070c9edde425740c62 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 3 Jul 2006 08:30:33 +0000 Subject: [PATCH] Replace --enable-wall and --enable-pedantic with --enable-developer-warnings, 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 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 1113ff4c..5eeee218 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -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") -- 2.39.5