]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence a warning in external or bundled boost headers (boost 1.56) 846/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Mon, 20 Apr 2015 11:29:55 +0000 (13:29 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Mon, 20 Apr 2015 11:29:55 +0000 (13:29 +0200)
include/deal.II/base/config.h.in
source/base/utilities.cc

index ca519a36a99f8324961fcdd405d1c04a661e9771..5f765645ca9e1a64ef1587add2367cb5037e666a 100644 (file)
@@ -295,6 +295,7 @@ _Pragma("GCC diagnostic ignored \"-Wunused-function\"")          \
 _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"")         \
 _Pragma("GCC diagnostic ignored \"-Wunused-variable\"")          \
 _Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
+_Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"")        \
 _Pragma("GCC diagnostic warning \"-Wpragmas\"")
 
 #  define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS                       \
index d776a0ab623457327bf40ba93ba2d4f4f228053d..c8bd42a2c549780d967e887570cd9961d8320e3d 100644 (file)
@@ -20,7 +20,9 @@
 
 #include <boost/math/special_functions/erf.hpp>
 #include <boost/lexical_cast.hpp>
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/random.hpp>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <algorithm>
 #include <cerrno>

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.