Unverified Commit 0b8f586d authored by Simon Giesecke's avatar Simon Giesecke Committed by GitHub

Merge pull request #3144 from bluca/autoconf_taut

Problem: autoconf checks tautological compiler flag only for C++
parents 088fd65b 06eaf205
......@@ -813,8 +813,14 @@ AM_CONDITIONAL([WITH_CLANG_FORMAT], [$WITH_CLANG_FORMAT])
AM_CONDITIONAL(ENABLE_STATIC, test "x$enable_static" = "xyes")
# clang 6 has a warning that does not make sense on multi-platform code
AC_LANG_PUSH([C])
AX_CHECK_COMPILE_FLAG([-Wno-tautological-constant-compare],
[CFLAGS+=" -Wno-tautological-constant-compare" CXXFLAGS+=" -Wno-tautological-constant-compare"],
[CFLAGS+=" -Wno-tautological-constant-compare"],
[],
[-Werror])
AC_LANG_POP([C])
AX_CHECK_COMPILE_FLAG([-Wno-tautological-constant-compare],
[CXXFLAGS+=" -Wno-tautological-constant-compare"],
[],
[-Werror])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment