Skip to content
Snippets Groups Projects
Commit c2f79f23 authored by Stephan Seitz's avatar Stephan Seitz Committed by Sebastian Eibl
Browse files

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

parent b03f6b79
No related merge requests found
...@@ -61,7 +61,14 @@ namespace mpistubs { ...@@ -61,7 +61,14 @@ namespace mpistubs {
#pragma warning ( push, 1 ) #pragma warning ( push, 1 )
#endif #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> #include <mpi.h>
#if ( defined WALBERLA_CXX_COMPILER_IS_GNU ) || ( defined WALBERLA_CXX_COMPILER_IS_CLANG )
# pragma GCC diagnostic pop
#endif
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning ( pop ) #pragma warning ( pop )
...@@ -284,8 +291,8 @@ using namespace mpistubs; ...@@ -284,8 +291,8 @@ using namespace mpistubs;
namespace walberla { namespace walberla {
namespace mpi { namespace mpi {
typedef int MPIRank; using MPIRank = int;
typedef int MPISize; using MPISize = int;
const MPIRank INVALID_RANK = -1; const MPIRank INVALID_RANK = -1;
const MPISize INVALID_SIZE = -1; const MPISize INVALID_SIZE = -1;
} // namespace MPI } // 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