From 4c9149e9383ef4ce6f90653148dffc9ec409be21 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 16 Apr 2015 20:00:18 +0200 Subject: [PATCH] CMake: Remove -Wno-deprecated -Wno-deprecated has nothing to do with -Wno-deprecated-declarations. Thus, remove it. --- cmake/config/CMakeLists.txt | 6 ++---- cmake/setup_compiler_flags_gnu.cmake | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) 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") -- 2.39.5