changed: use c++17 [[maybe_unused]]

This commit is contained in:
Arne Morten Kvarving
2021-05-14 13:54:58 +02:00
parent a432050b20
commit 4695dc9354
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ public:
/*! /*!
* \brief Send the buffer asyncronously to a peer process. * \brief Send the buffer asyncronously to a peer process.
*/ */
void send(unsigned peerRank OPM_UNUSED_NOMPI) void send([[maybe_unused]] unsigned peerRank)
{ {
#if HAVE_MPI #if HAVE_MPI
MPI_Isend(data_, MPI_Isend(data_,
@@ -108,7 +108,7 @@ public:
/*! /*!
* \brief Receive the buffer syncronously from a peer rank * \brief Receive the buffer syncronously from a peer rank
*/ */
void receive(unsigned peerRank OPM_UNUSED_NOMPI) void receive([[maybe_unused]] unsigned peerRank)
{ {
#if HAVE_MPI #if HAVE_MPI
MPI_Recv(data_, MPI_Recv(data_,
@@ -444,7 +444,7 @@ protected:
} }
} }
void sendIndicesToPeer_(ProcessRank peerRank OPM_UNUSED_NOMPI) void sendIndicesToPeer_([[maybe_unused]] ProcessRank peerRank)
{ {
#if HAVE_MPI #if HAVE_MPI
const auto& foreignOverlap = foreignOverlap_.foreignOverlapWithPeer(peerRank); const auto& foreignOverlap = foreignOverlap_.foreignOverlapWithPeer(peerRank);
@@ -489,7 +489,7 @@ protected:
delete indicesSendBuffer_[peerRank]; delete indicesSendBuffer_[peerRank];
} }
void receiveIndicesFromPeer_(ProcessRank peerRank OPM_UNUSED_NOMPI) void receiveIndicesFromPeer_([[maybe_unused]] ProcessRank peerRank)
{ {
#if HAVE_MPI #if HAVE_MPI
// receive the number of additional indices // receive the number of additional indices