From: Willem Jan Withagen Date: Thu, 28 Jul 2016 09:25:03 +0000 (+0200) Subject: src/CMakeLists.txt: -Woverloaded-virtual is already included in -Wall on Clang X-Git-Tag: v11.0.1~331^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=609298bb04898c738a15f465b22a335e6114cbf7;p=ceph.git src/CMakeLists.txt: -Woverloaded-virtual is already included in -Wall on Clang Signed-off-by: Willem Jan Withagen --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ffa417651d7b..a505b811f6d3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -113,9 +113,9 @@ else(no_yasm) endif(no_yasm) set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -ftemplate-depth-1024 -Wno-invalid-offsetof") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Woverloaded-virtual") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor") if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-null-sentinel") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-null-sentinel -Woverloaded-virtual") endif(CMAKE_CXX_COMPILER_ID STREQUAL GNU) # require c++11