diff options
author | cnugteren <web@cedricnugteren.nl> | 2016-04-04 08:39:13 -0700 |
---|---|---|
committer | cnugteren <web@cedricnugteren.nl> | 2016-04-04 08:39:13 -0700 |
commit | c2cfee76c4d8f7486d5b62b3e0a878867a32a070 (patch) | |
tree | 9c60a88292d826a94c6c6edb0ede3f7bb0bbd132 /CMakeLists.txt | |
parent | 90e237b97a42ebc71771e1d023f2f8f695c8fa59 (diff) |
Properly set warning flags for Clang
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 21254ded..a4eb5b85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,9 +66,10 @@ else () set(FLAGS "${FLAGS} -Wno-attributes -Wno-unused-variable") endif() elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") - set(FLAGS "${FLAGS} -Wall -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded") + set(FLAGS "${FLAGS} -Wextra -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded") set(FLAGS "${FLAGS} -Wno-missing-prototypes -Wno-float-equal -Wno-switch-enum -Wno-switch") set(FLAGS "${FLAGS} -Wno-exit-time-destructors -Wno-global-constructors -Wno-missing-noreturn") + set(FLAGS "${FLAGS} -Wno-deprecated-declarations") endif() endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLAGS}") |