From: James Turner Date: Thu, 12 Feb 2015 16:19:57 +0000 (+0000) Subject: Tweak warning flags, for newer Clang. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6323477a35d9dbca5f56f36583775fe5fab5d5d8;p=simgear.git Tweak warning flags, for newer Clang. No functionality changing, just less spam in the compile logs. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 01bdc4f7..de92fcfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,7 +181,7 @@ endif() include(BoostTestTargets) find_package(Boost REQUIRED) -set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION") +set (BOOST_CXX_FLAGS "-DBOOST_BIMAP_DISABLE_SERIALIZATION") if(SIMGEAR_HEADLESS) message(STATUS "SimGear mode: HEADLESS") @@ -311,11 +311,12 @@ 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_C "-Wall") - 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++") + # Boost redeclares class members + set(WARNING_FLAGS_CXX "-Wall -Wno-overloaded-virtual -Wno-redeclared-class-member") + set(WARNING_FLAGS_C "-Wall") + 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++") endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")