]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Remove -Wno-deprecated 817/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 16 Apr 2015 18:00:18 +0000 (20:00 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 16 Apr 2015 18:02:31 +0000 (20:02 +0200)
-Wno-deprecated has nothing to do with -Wno-deprecated-declarations. Thus,
remove it.

cmake/config/CMakeLists.txt
cmake/setup_compiler_flags_gnu.cmake

index 534267b88c5a386de10e20eccfd811fb58353759..61cbfd4f056995059d5a7ded2ec5818424370af3 100644 (file)
@@ -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")
 
 #
index 850250b8e3527aad4814edccbfec45f2bf52d852..6542d8bbf70639b935ce408ced4c78ac2affed6d 100644 (file)
@@ -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")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.