From 980a98b1760da986607b174b5591a2030155598e Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 27 Sep 2015 20:40:34 -0500 Subject: [PATCH] Silence more Clang (Xcode 7) warnings --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c88ac3b27..950a10e45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -343,11 +343,15 @@ 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 -Wno-redeclared-class-member") + set(WARNING_FLAGS_CXX "-Wall -Wno-overloaded-virtual \ + -Wno-redeclared-class-member \ + -Wno-inconsistent-missing-override \ + -Wno-unused-local-typedef") + 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) -- 2.39.5