]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Ignore deprecation warnings from BOOST headers. 995/head
authorDavid Wells <drwells@vt.edu>
Mon, 8 Jun 2015 03:22:38 +0000 (23:22 -0400)
committerDavid Wells <drwells@vt.edu>
Mon, 8 Jun 2015 03:22:38 +0000 (23:22 -0400)
To the best of my knowledge, only the headers in boost/signals2/,
boost/smart_ptr/, and boost/serialize/ contain references to auto_ptr that may
trigger warnings in deal.II headers included in user applications.

include/deal.II/base/config.h.in
include/deal.II/grid/tria.h
include/deal.II/lac/solver.h

index 04b6536e7cdd06efd7e4ec409808bbc2a3df694d..0650ff7831607d4ba36bd67d6f4f827a703cd999 100644 (file)
@@ -297,6 +297,7 @@ _Pragma("GCC diagnostic ignored \"-Wunused-variable\"")          \
 _Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
 _Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"")        \
 _Pragma("GCC diagnostic ignored \"-Wunused-private-field\"")     \
+_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")  \
 _Pragma("GCC diagnostic warning \"-Wpragmas\"")
 
 #  define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS                       \
index 9fa2af06504b9a9ce9ba4059bb8735b3f8120932..c1ef230397211f2b011113fd8c002762141d3ccb 100644 (file)
 #include <deal.II/grid/tria_faces.h>
 #include <deal.II/grid/tria_levels.h>
 
+// Ignore deprecation warnings for auto_ptr.
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/signals2.hpp>
 #include <boost/serialization/vector.hpp>
 #include <boost/serialization/map.hpp>
 #include <boost/serialization/split_member.hpp>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <vector>
 #include <list>
index ec1ba196e9c143142a758664ffe79914db604f19..f62ef974d2e7179f99acc1d3d8f1ac452e4eae96 100644 (file)
 #include <deal.II/lac/vector_memory.h>
 #include <deal.II/lac/solver_control.h>
 
+// Ignore deprecation warnings for auto_ptr.
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/signals2.hpp>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 DEAL_II_NAMESPACE_OPEN
 

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.