From 84b240b84cad78a39f59b9cc8b926efb2e11b2fa Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 12 Feb 2015 16:24:27 +0000 Subject: [PATCH] Adjust warning flags for Clang. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 239eba0ac..f22da954a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,11 +336,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif(CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set (WARNING_FLAGS_CXX "-Wall -Wno-overloaded-virtual") + set (WARNING_FLAGS_CXX "-Wall -Wno-overloaded-virtual -Wno-redeclared-class-member") set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") - set (WARNING_FLAGS_C "-Wall") + set (WARNING_FLAGS_C "-Wall") endif() if(WIN32) @@ -360,7 +360,7 @@ if(WIN32) set(NOMINMAX 1) endif(WIN32) -set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION") +set (BOOST_CXX_FLAGS "-DBOOST_BIMAP_DISABLE_SERIALIZATION") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS_C} ${MSVC_FLAGS} -D_REENTRANT") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS_CXX} ${MSVC_FLAGS} -D_REENTRANT ${BOOST_CXX_FLAGS}")