]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable -Wplacement-new. 3089/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 8 Sep 2016 22:48:06 +0000 (16:48 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 8 Sep 2016 22:48:06 +0000 (16:48 -0600)
This is necessary since it triggers a warning in the BOOST version we bundle
and that yields a warning message several dozen times per build. The BOOST
code may be clumsily written, but is correct.

cmake/setup_compiler_flags_gnu.cmake

index cc752416507c7e33a5708846f4de40a89d0fc0d9..eec2173315c02fd7adb2be0462a55c00db94208c 100644 (file)
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2012 - 2015 by the deal.II authors
+## Copyright (C) 2012 - 2016 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -72,6 +72,13 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Woverloaded-virtual")
 #
 ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-long-long")
 
+#
+# Disable Wplacement-new that will trigger a lot of warnings
+# in the BOOST function classes that we include via the
+# BOOST signals classes:
+#
+ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-placement-new")
+
 #
 # Disable deprecation warnings
 #

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.