mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Merge pull request #3985 from fanquake/test_flag_before_turning_off_warnings
build: test for warning options before enabling -Wno-* variant
This commit is contained in:
commit
4b4e19f915
@ -748,7 +748,7 @@ AM_CONDITIONAL(ON_GNU, test "x$libzmq_on_gnu" = "xyes")
|
||||
|
||||
# Check for __atomic_Xxx compiler intrinsics
|
||||
AC_LANG_PUSH([C++])
|
||||
AX_CHECK_COMPILE_FLAG([-Wno-atomic-alignment],
|
||||
AX_CHECK_COMPILE_FLAG([-Watomic-alignment],
|
||||
[CXXFLAGS+=" -Wno-atomic-alignment"],
|
||||
[],
|
||||
[-Werror])
|
||||
@ -1050,12 +1050,12 @@ AM_CONDITIONAL(FUZZING_ENGINE_LIB, test "x$FUZZING_ENGINE_LIB" != "x")
|
||||
|
||||
# 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],
|
||||
AX_CHECK_COMPILE_FLAG([-Wtautological-constant-compare],
|
||||
[CFLAGS+=" -Wno-tautological-constant-compare"],
|
||||
[],
|
||||
[-Werror])
|
||||
AC_LANG_POP([C])
|
||||
AX_CHECK_COMPILE_FLAG([-Wno-tautological-constant-compare],
|
||||
AX_CHECK_COMPILE_FLAG([-Wtautological-constant-compare],
|
||||
[CXXFLAGS+=" -Wno-tautological-constant-compare"],
|
||||
[],
|
||||
[-Werror])
|
||||
|
Loading…
Reference in New Issue
Block a user