From: Matthias Maier Date: Thu, 16 Apr 2015 18:00:18 +0000 (+0200) Subject: CMake: Remove -Wno-deprecated X-Git-Tag: v8.3.0-rc1~260^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F817%2Fhead;p=dealii.git CMake: Remove -Wno-deprecated -Wno-deprecated has nothing to do with -Wno-deprecated-declarations. Thus, remove it. --- diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt index 534267b88c..61cbfd4f05 100644 --- a/cmake/config/CMakeLists.txt +++ b/cmake/config/CMakeLists.txt @@ -72,11 +72,9 @@ INSTALL(FILES ${_macros} STRIP_FLAG(DEAL_II_LINKER_FLAGS "-Wl,--as-needed") # -# Strip -Wno-deprecated from DEAL_II_CXX_FLAGS so that deprecation warnings -# are actually shown for user code: +# Strip -Wno-deprecated-declarations from DEAL_II_CXX_FLAGS so that +# deprecation warnings are actually shown for user code: # - -STRIP_FLAG(DEAL_II_CXX_FLAGS "-Wno-deprecated") STRIP_FLAG(DEAL_II_CXX_FLAGS "-Wno-deprecated-declarations") # diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 850250b8e3..6542d8bbf7 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -74,7 +74,6 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-long-long") # # Disable deprecation warnings # -ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-deprecated") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-deprecated-declarations") IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")