]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove DEAL_II_WRETURN_TYPE_CONST_QUALIFIER_BUG. 4907/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 19 Aug 2017 03:43:24 +0000 (23:43 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 19 Aug 2017 03:43:24 +0000 (23:43 -0400)
This was a workaround for a bug in gcc 4.3 that has long since been fixed.

cmake/checks/check_03_compiler_bugs.cmake

index 49a63715eec8c787e4e5250ef7a50f0be34e6b03..8b689cfb8aedf9d901b826dd29a47dd87f77f8cc 100644 (file)
 #                                                                      #
 ########################################################################
 
-
-#
-# 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

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.