From: Timo Heister Date: Mon, 23 Dec 2019 02:41:10 +0000 (-0500) Subject: silence system header MPI warning X-Git-Tag: v9.2.0-rc1~765^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9191%2Fhead;p=dealii.git silence system header MPI warning 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. --- 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