From 919214f215964cb9087ce293171ab88c4715f634 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 23 Feb 2014 17:21:51 -0800 Subject: [PATCH] configure: Disable -Wsign-conversion. It may cause problems in expanded macros from libc. --- configure.ac | 2 ++ t/cibuild.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ede963b..de18e15 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ diff --git a/t/cibuild.sh b/t/cibuild.sh index 120d427..8b872af 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -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 -- 2.30.2