aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/clang/settings.cmake
diff options
context:
space:
mode:
authorDDuarte <dnpd.dd@gmail.com>2016-12-30 02:15:40 +0000
committerDDuarte <dnpd.dd@gmail.com>2016-12-30 02:15:40 +0000
commit467e49c1fa3c13d0e574bc15c80e96fa1c560958 (patch)
tree3e4ebd3c4f714cba6e72a4205ab7eb8e118c362f /cmake/compiler/clang/settings.cmake
parent5e845b97bdd50a8fc9bcfca642df549067a20f47 (diff)
Build/Clang: Suppress -Wexpansion-to-defined because of rapidjson dep
https://travis-ci.org/TrinityCore/TrinityCore/builds/187588737#L985-L995
Diffstat (limited to 'cmake/compiler/clang/settings.cmake')
-rw-r--r--cmake/compiler/clang/settings.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake
index 1cd95bbf703..cf5d4ccc48c 100644
--- a/cmake/compiler/clang/settings.cmake
+++ b/cmake/compiler/clang/settings.cmake
@@ -16,7 +16,8 @@ endif()
# -Wno-narrowing needed to suppress a warning in g3d
# -Wno-deprecated-register is needed to suppress 185 gsoap warnings on Unix systems.
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-narrowing -Wno-deprecated-register")
+# -Wno-expansion-to-defined needed to suppress a warning in rapidjson
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-narrowing -Wno-deprecated-register -Wno-expansion-to-defined")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG=1")
if (BUILD_SHARED_LIBS)