Skip to content
Snippets Groups Projects
Commit 20d3bc62 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

Merge branch 'silence-clang-mpi-warnigs' into 'master'

Silence warnings in mpi.h for (mpich and clang12)

See merge request walberla/walberla!353
parents f21a9e7d 5c825e80
No related merge requests found
......@@ -28,6 +28,7 @@ modernize-*,
-modernize-avoid-c-arrays,
mpi-*,
-mpi-type-mismatch,
openmp-*,
-openmp-exception-escape,
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment