Clang-3.8: Added ignore flag for double promotion
This commit is contained in:
parent
4976190516
commit
26f4b00960
@ -288,6 +288,12 @@ macro(set_exe_flags)
|
|||||||
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
|
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
|
||||||
add_flags_cxx("-Wno-error=disabled-macro-expansion")
|
add_flags_cxx("-Wno-error=disabled-macro-expansion")
|
||||||
endif()
|
endif()
|
||||||
|
if ("${CLANG_VERSION}" VERSION_GREATER 3.7)
|
||||||
|
check_cxx_compiler_flag(-Wno-double-promotion HAS_NO_DOUBLE_PROMOTION)
|
||||||
|
if (HAS_NO_DOUBLE_PROMOTION)
|
||||||
|
add_flags_cxx("-Wno-double-promotion")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
add_flags_cxx("-Wno-error=unused-command-line-argument")
|
add_flags_cxx("-Wno-error=unused-command-line-argument")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user