From 37735066ee083bee2a74244a2de68509344fd6ef Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 22 Dec 2019 21:41:10 -0500 Subject: [PATCH] silence system header MPI warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I am getting /usr/include/mpich/mpicxx.h:1523:24: warning: ‘virtual MPI::Nullcomm& MPI::Nullcomm::Clone() const’ can be marked override [-Wsuggest- override] with gcc5 and mpich 3.1. Fix this. --- include/deal.II/base/config.h.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 902ac128f9..52b91155b1 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -383,6 +383,7 @@ _Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"") \ _Pragma("GCC diagnostic ignored \"-Woverflow\"") \ _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \ _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \ +_Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \ _Pragma("GCC diagnostic ignored \"-Wtautological-constant-out-of-range-compare\"") \ _Pragma("GCC diagnostic ignored \"-Wtype-limits\"") \ _Pragma("GCC diagnostic ignored \"-Wundef\"") \ @@ -429,7 +430,9 @@ _Pragma("GCC diagnostic pop") * types.h */ #if defined(DEAL_II_WITH_MPI) || defined(DEAL_II_WITH_PETSC) +DEAL_II_DISABLE_EXTRA_DIAGNOSTICS # include +DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #endif #include -- 2.39.5