From: David Wells Date: Sat, 19 Aug 2017 03:43:24 +0000 (-0400) Subject: Remove DEAL_II_WRETURN_TYPE_CONST_QUALIFIER_BUG. X-Git-Tag: v9.0.0-rc1~1209^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bd3bdfe3ea2617b5b04018a8279a0c9a48348a7;p=dealii.git Remove DEAL_II_WRETURN_TYPE_CONST_QUALIFIER_BUG. This was a workaround for a bug in gcc 4.3 that has long since been fixed. --- diff --git a/cmake/checks/check_03_compiler_bugs.cmake b/cmake/checks/check_03_compiler_bugs.cmake index 49a63715ee..8b689cfb8a 100644 --- a/cmake/checks/check_03_compiler_bugs.cmake +++ b/cmake/checks/check_03_compiler_bugs.cmake @@ -19,31 +19,6 @@ # # ######################################################################## - -# -# On some gcc 4.3 snapshots, a 'const' qualifier on a return type triggers a -# warning. This is unfortunate, since we happen to stumble on this -# in some of our template trickery with iterator classes. If necessary, -# do not use the relevant warning flag -# -# - Wolfgang Bangerth, Matthias Maier, rewritten 2012 -# -PUSH_CMAKE_REQUIRED("-Wreturn-type") -PUSH_CMAKE_REQUIRED("-Werror") -CHECK_CXX_COMPILER_BUG( - " - const double foo() { return 1.; } - int main() { return 0; } - " - DEAL_II_WRETURN_TYPE_CONST_QUALIFIER_BUG - ) -RESET_CMAKE_REQUIRED() - -IF(DEAL_II_WRETURN_TYPE_CONST_QUALIFIER_BUG) - ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS -Wno-return-type) -ENDIF() - - # # In some cases, we would like to name partial specializations # as friends. However, the standard forbids us to do so. But