]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove the DEPRECATED check because it is not used at all...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Sep 2012 08:36:50 +0000 (08:36 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 Sep 2012 08:36:50 +0000 (08:36 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26369 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/check/check_for_compiler_features.cmake

index b9ebc44641fad0377b62338fbabbe9c1fac8f110..d5c2fab607e5e6eec3fbd0027108a4e2fd8f3098 100644 (file)
@@ -162,43 +162,6 @@ CHECK_CXX_SOURCE_COMPILES(
 
 
 
-#
-# See if the compiler understands the attribute to mark functions
-# as deprecated.
-#
-
-#
-# First see if the following compiles without error (it should
-# produce a warning but we don't care about this)
-
-
-CHECK_CXX_SOURCE_COMPILES(
-  "
-  int old_fn () __attribute__((deprecated));
-  int old_fn () {};
-  int (*fn_ptr)() = old_fn;
-  int main() { return 0; }
-  "
-  DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED)
-
-LIST(APPEND CMAKE_REQUIRED_FLAGS "-Werror")
-CHECK_CXX_SOURCE_COMPILES(
-  "
-  int old_fn () __attribute__((deprecated));
-  int old_fn () {};
-  int (*fn_ptr)() = old_fn;
-  int main() { return 0; }
-  "
-  DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED_SHOULD_FAIL)
-LIST(REMOVE_ITEM CMAKE_REQUIRED_FLAGS "-Werror")
-
-IF(DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED AND NOT
-    DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED_SHOULD_FAIL)
-  SET(DEAL_II_DEPRECATED TRUE)
-ENDIF()
-
-
-
 #
 # Check whether the compiler allows for vectorization and that
 # vectorization actually works. For this test, we use compiler

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.