]> https://gitweb.dealii.org/ - dealii.git/commitdiff
silence system header MPI warning 9191/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 23 Dec 2019 02:41:10 +0000 (21:41 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 23 Dec 2019 02:41:10 +0000 (21:41 -0500)
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

index 902ac128f92634fcb7cb440e74a0f829f125a8bb..52b91155b15e8126472bdcb80e1425f0b26da561 100644 (file)
@@ -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 <mpi.h>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #endif
 
 #include <deal.II/base/numbers.h>

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.