From dfbbe8fa1e04912858a1ccffd2d2855fa72fa71a Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Thu, 21 Nov 2013 09:31:53 +0100 Subject: [PATCH] Clang compatibility fix Option to not fail on integers sign comparison must come after the extra warnings have been enabled or it is ignored. --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 59f7721..7c09b8e 100644 --- a/configure.in +++ b/configure.in @@ -27,7 +27,7 @@ dnl C99 support is required to define LLONG_MAX (at least on CentOS 5.7) AC_PROG_CC_C99 # Report more warnings to improve code quality. -CFLAGS="${CFLAGS} -Wall -Wno-sign-compare" +CFLAGS="${CFLAGS} -Wall" dnl Check for supported compiler options @@ -40,6 +40,9 @@ if test "$have_extra_warnings" = "no" ; then CFLAGS="${saved_CFLAGS}" fi +# Don't compare signs as it is a mess +CFLAGS="${CFLAGS} -Wno-sign-compare" + AC_MSG_CHECKING([for implicit-function-declaration error flag in $CC]) saved_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Werror=implicit-function-declaration" -- 2.47.2