From ec3407a42f5a5cdc3d2b5fb254fda8a200194330 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 27 Jun 2021 18:13:52 +0200 Subject: [PATCH] Set -Wno-tautological-compare on clang 3.x (yeah old version), this to shut up false positives in buildbot. --- configure | 4 ++++ configure.ac | 3 +++ 2 files changed, 7 insertions(+) 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.