From: David Wells Date: Mon, 8 Jun 2015 03:22:38 +0000 (-0400) Subject: Ignore deprecation warnings from BOOST headers. X-Git-Tag: v8.3.0-rc1~123^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d672499a586e59b5ed6f70da37704c18d00307e0;p=dealii.git Ignore deprecation warnings from BOOST headers. 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. --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 04b6536e7c..0650ff7831 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -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 \ diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index 9fa2af0650..c1ef230397 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -28,10 +28,13 @@ #include #include +// Ignore deprecation warnings for auto_ptr. +DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include #include #include #include +DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #include #include diff --git a/include/deal.II/lac/solver.h b/include/deal.II/lac/solver.h index ec1ba196e9..f62ef974d2 100644 --- a/include/deal.II/lac/solver.h +++ b/include/deal.II/lac/solver.h @@ -21,7 +21,10 @@ #include #include +// Ignore deprecation warnings for auto_ptr. +DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include +DEAL_II_ENABLE_EXTRA_DIAGNOSTICS DEAL_II_NAMESPACE_OPEN