Commit 19af9af7 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

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: http://www.varnish-cache.org/svn/trunk@278 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent fa689088
......@@ -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")
......
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