summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-30 12:51:31 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-30 15:39:00 +0100
commit26f4b00960f4965593526e15d9f537f18b54e5b8 (patch)
treea72320384ee52a6da28ef719ed3e8de980d9b1c3
parentMerge pull request #2836 from cuberite/FixDefaultWorldGenParams (diff)
downloadcuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.tar
cuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.tar.gz
cuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.tar.bz2
cuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.tar.lz
cuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.tar.xz
cuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.tar.zst
cuberite-26f4b00960f4965593526e15d9f537f18b54e5b8.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index d3a6aba86..206a1da8e 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -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()