From d672499a586e59b5ed6f70da37704c18d00307e0 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 7 Jun 2015 23:22:38 -0400 Subject: [PATCH] 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. --- include/deal.II/base/config.h.in | 1 + include/deal.II/grid/tria.h | 3 +++ include/deal.II/lac/solver.h | 3 +++ 3 files changed, 7 insertions(+) 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 -- 2.39.5