diff --git a/configure b/configure index a80483d1f..9fa52ccec 100755 --- a/configure +++ b/configure @@ -5887,6 +5887,10 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +if $CC --version | grep -q "clang version 3."; then : + CFLAGS="$CFLAGS -Wno-tautological-compare" +fi + diff --git a/configure.ac b/configure.ac index 4f3f8e6be..991ed0d33 100644 --- a/configure.ac +++ b/configure.ac @@ -254,6 +254,9 @@ check_cc_flag([-Waddress], [CFLAGS="$CFLAGS -Wno-address"]) dnl This one breaks our TO_INTFUNC() that is used in m_tkl for tkl_typetochar check_cc_flag([-Wcast-function-type], [CFLAGS="$CFLAGS -Wno-cast-function-type"]) +AS_IF([$CC --version | grep -q "clang version 3."], + [CFLAGS="$CFLAGS -Wno-tautological-compare"]) + dnl End of -W... compiler checks.