Skip to content

Commit

Permalink
src/CMakeLists.txt: supress more warnings
Browse files Browse the repository at this point in the history
 - We already have -Wall
   So thes options without no- are redundant.
   and overloaded-virtual generates one warning for every line
   when compiling with Clang.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
  • Loading branch information
wjwithagen committed Aug 10, 2016
1 parent fa12789 commit a0ab97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Expand Up @@ -113,7 +113,7 @@ 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 -Wno-overloaded-virtual")
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-null-sentinel")
endif(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
Expand Down

0 comments on commit a0ab97d

Please sign in to comment.