1
0
Fork 0

Merge pull request #2838 from cuberite/clang-3.8-ignore-flag

Clang-3.8: Added ignore flag for double promotion
This commit is contained in:
worktycho 2015-12-30 20:40:40 +00:00
commit 2b38b4e66e
1 changed files with 6 additions and 0 deletions

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()