]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Cleanup: Just search for support for the deprecated attribute, don't check whether...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Jan 2013 15:41:27 +0000 (15:41 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 18 Jan 2013 15:41:27 +0000 (15:41 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28131 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/checks/check_01_compiler_features.cmake

index ce0a4e40d3d5a9944178c05f6e50594ee9d33929..3a4bb1c63913be7d2a5250b29f750828ef404138 100644 (file)
@@ -358,29 +358,12 @@ CHECK_CXX_SOURCE_COMPILES(
 
          int main () {}
   "
-  DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED)
+  DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED
+  )
 
-# ...and then verify whether it actually errors out if
-# -Werror is given
-PUSH_TEST_FLAG("-Werror")
-CHECK_CXX_SOURCE_COMPILES(
-  "
-          int old_fn () __attribute__((deprecated));
-          int old_fn () { return 0; }
-          int (*fn_ptr)() = old_fn;
-
-         int main () {}
-  "
-  DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED_WARNING)
-POP_TEST_FLAG()
-
-IF(DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED
-   AND
-   (NOT DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED_WARNING))
-  MESSAGE(STATUS "Compiler supports the deprecated attribute")
+IF(DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED)
   SET(DEAL_II_DEPRECATED "__attribute__((deprecated))")
 ELSE()
-  MESSAGE(STATUS "Compiler does not support the deprecated attribute")
   SET(DEAL_II_DEPRECATED " ")
 ENDIF()
 

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.