summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-23 16:33:52 +0200
committertycho <work.tycho@gmail.com>2015-05-23 16:33:52 +0200
commit81c0116cf1c0b06e24f9f69e219c3f1e302d81e2 (patch)
tree8df120fde19c9c27f5a8681a7952aa9e802bc800 /SetFlags.cmake
parentMerge branch 'master' into PreventNewWarnings (diff)
parentMerge pull request #2117 from Seadragon91/clang_errors (diff)
downloadcuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.tar
cuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.tar.gz
cuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.tar.bz2
cuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.tar.lz
cuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.tar.xz
cuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.tar.zst
cuberite-81c0116cf1c0b06e24f9f69e219c3f1e302d81e2.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 54b40aabb..2de86090d 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -258,6 +258,10 @@ macro(set_exe_flags)
# flags introduced in 3.2
add_flags_cxx("-Wno-documentation")
endif()
+ if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
+ # Use this flag to ignore error for a reserved macro problem in sqlite 3
+ add_flags_cxx("-Wno-reserved-id-macro")
+ endif()
endif()
endif()