Code

configure: Disable -Wsign-conversion.
authorSebastian Harl <sh@tokkee.org>
Mon, 24 Feb 2014 01:21:51 +0000 (17:21 -0800)
committerSebastian Harl <sh@tokkee.org>
Mon, 24 Feb 2014 01:21:51 +0000 (17:21 -0800)
It may cause problems in expanded macros from libc.

configure.ac
t/cibuild.sh

index ede963bd7bb582553c0ae5f0a3ac1807e171279b..de18e156b7f891616c76d24661314cba8ac70e7f 100644 (file)
@@ -168,11 +168,13 @@ for flag in -Wall -Werror; do
 done
 
 if test "x$enable_strict_checks" = "xyes"; then
+       dnl -Wsign-conversion may cause problems in expanded macros from libc
        for flag in -Wextra \
                        -Wbad-function-cast \
                        -Wcast-align \
                        -Wcast-qual \
                        -Wconversion \
+                       -Wno-sign-conversion \
                        -Wdeclaration-after-statement \
                        -Wmissing-prototypes \
                        -Wpointer-arith \
index 120d4278b9e7f404d1175cab90626a30d547650d..8b872af6edbc7fb39bdc4570a9fea25bc10f06ea 100755 (executable)
@@ -8,7 +8,7 @@ set -ex
 
 ./autogen.sh
 ./configure --enable-gcov $CIOPTIONS \
-       CFLAGS="-O0 -Wno-sign-conversion $CICFLAGS" \
+       CFLAGS="-O0 $CICFLAGS" \
        LDFLAGS="$CILDFLAGS"
 make clean all
 make test