From: Matthias Maier Date: Fri, 14 Sep 2012 08:36:50 +0000 (+0000) Subject: Remove the DEPRECATED check because it is not used at all... X-Git-Tag: v8.0.0~1079^2~872 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=735552fbb652a9415abac23b552567724ca9a4a1;p=dealii.git 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 --- 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