Commit 616dc0d9 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Tweak DEVELOPER_CFLAGS.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1407 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 53a0aebe
......@@ -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}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment