]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Compile with -Wall -Werror 15/head
authorDaniel Axtens <dja@axtens.net>
Mon, 4 May 2015 06:28:32 +0000 (16:28 +1000)
committerDaniel Axtens <dja@axtens.net>
Mon, 4 May 2015 06:29:15 +0000 (16:29 +1000)
This should help keep code quality up.

Signed-off-by: Daniel Axtens <dja@axtens.net>
configure

index 93bbce2c9363873b9a24ba51d6c7154cd77ebc27..f138325cabb02a55dfd7018f9da40a2d97279125 100755 (executable)
--- 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