1
0

Clang-3.8: Added ignore flag for double promotion

This commit is contained in:
Lukas Pioch 2015-12-30 12:51:31 +01:00
parent 4976190516
commit 26f4b00960

View File

@ -288,6 +288,12 @@ macro(set_exe_flags)
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
add_flags_cxx("-Wno-error=disabled-macro-expansion")
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")
endif()
endif()