From: Daniel Axtens Date: Mon, 4 May 2015 06:28:32 +0000 (+1000) Subject: Compile with -Wall -Werror X-Git-Tag: 1.9.9-b1~868^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15%2Fhead;p=thirdparty%2Fzlib-ng.git Compile with -Wall -Werror This should help keep code quality up. Signed-off-by: Daniel Axtens --- diff --git a/configure b/configure index 93bbce2c..f138325c 100755 --- a/configure +++ b/configure @@ -188,7 +188,7 @@ show $cc -c $test.c if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then echo ... using gcc >> configure.log CC="$cc" - CFLAGS="${CFLAGS--O3} ${ARCHS}" + CFLAGS="${CFLAGS--O3} ${ARCHS} -Wall -Werror" SFLAGS="${CFLAGS--O3} -fPIC" LDFLAGS="${LDFLAGS} ${ARCHS}" if test $build64 -eq 1; then @@ -197,9 +197,9 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then fi if test "${ZLIBGCCWARN}" = "YES"; then if test "$zconst" -eq 1; then - CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -pedantic -DZLIB_CONST" + CFLAGS="${CFLAGS} -Wextra -Wcast-qual -pedantic -DZLIB_CONST" else - CFLAGS="${CFLAGS} -Wall -Wextra -pedantic" + CFLAGS="${CFLAGS} -Wextra -pedantic" fi fi if test -z "$uname"; then