From 230adafbce22426a71e884cb16844d4dd664d251 Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 14 Sep 2012 08:36:50 +0000 Subject: [PATCH] Remove the DEPRECATED check because it is not used at all... git-svn-id: https://svn.dealii.org/branches/branch_cmake@26369 0785d39b-7218-0410-832d-ea1e28bc413d --- .../check/check_for_compiler_features.cmake | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/deal.II/contrib/cmake/check/check_for_compiler_features.cmake b/deal.II/contrib/cmake/check/check_for_compiler_features.cmake index b9ebc44641..d5c2fab607 100644 --- a/deal.II/contrib/cmake/check/check_for_compiler_features.cmake +++ b/deal.II/contrib/cmake/check/check_for_compiler_features.cmake @@ -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 -- 2.39.5