diff --git a/source/adios2/toolkit/format/bp1/BP1Aggregator.cpp b/source/adios2/toolkit/format/bp1/BP1Aggregator.cpp index f227a061977e8d193c8c84a0dba31758bd98ad0f..9c63f725897682a38f6c22be478b343e07409c93 100644 --- a/source/adios2/toolkit/format/bp1/BP1Aggregator.cpp +++ b/source/adios2/toolkit/format/bp1/BP1Aggregator.cpp @@ -117,7 +117,8 @@ std::string BP1Aggregator::GetGlobalProfilingLog(const std::string &rankLog) { const int rankLogSize = static_cast<const int>(rankLog.size()); MPI_Request requestSize; - MPI_Isend(&rankLogSize, 1, MPI_INT, 0, 0, m_MPIComm, &requestSize); + MPI_Isend(const_cast<int *>(&rankLogSize), 1, MPI_INT, 0, 0, m_MPIComm, + &requestSize); MPI_Request requestRankLog; MPI_Isend(const_cast<char *>(rankLog.c_str()), rankLogSize, MPI_CHAR, 0,