From c2f79f23c3d7e5b75a25ea7cda51baa96e6141dd Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Fri, 9 Oct 2020 11:33:14 +0200
Subject: [PATCH] Silence warnings in mpi.h for (mpich and clang12)

---
 src/core/mpi/MPIWrapper.h | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/core/mpi/MPIWrapper.h b/src/core/mpi/MPIWrapper.h
index 3cdc7d546..14e72cc5d 100644
--- a/src/core/mpi/MPIWrapper.h
+++ b/src/core/mpi/MPIWrapper.h
@@ -61,7 +61,14 @@ namespace mpistubs {
 #pragma warning ( push, 1 )
 #endif
 
+#if ( defined WALBERLA_CXX_COMPILER_IS_GNU ) || ( defined WALBERLA_CXX_COMPILER_IS_CLANG )
+#   pragma GCC diagnostic push
+#   pragma GCC diagnostic ignored "-Wsign-conversion"
+#endif
 #include <mpi.h>
+#if ( defined WALBERLA_CXX_COMPILER_IS_GNU ) || ( defined WALBERLA_CXX_COMPILER_IS_CLANG )
+#   pragma GCC diagnostic pop
+#endif
 
 #ifdef _MSC_VER
 #pragma warning ( pop )
@@ -284,8 +291,8 @@ using namespace mpistubs;
 namespace walberla {
 
 namespace mpi {
-   typedef int MPIRank;
-   typedef int MPISize;
+   using MPIRank = int;
+   using MPISize = int;
    const MPIRank INVALID_RANK = -1;
    const MPISize INVALID_SIZE = -1;
 } // namespace MPI
-- 
GitLab