From bd4a76b80c33c4f4a3fa9aedef2c5545df3e1df6 Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Mon, 4 May 2015 16:28:32 +1000 Subject: [PATCH] Compile with -Wall -Werror This should help keep code quality up. Signed-off-by: Daniel Axtens --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2