From: Arnaud Giersch Date: Wed, 3 Apr 2019 19:52:06 +0000 (+0200) Subject: [sonar] Declare one identifier per statement. X-Git-Tag: v3.22.2~190 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/48c4ce90b3e0d5c5b09d60ede885a2770d7424c5 [sonar] Declare one identifier per statement. --- diff --git a/src/smpi/colls/smpi_nbc_impl.cpp b/src/smpi/colls/smpi_nbc_impl.cpp index 14781da4f5..b8de308e12 100644 --- a/src/smpi/colls/smpi_nbc_impl.cpp +++ b/src/smpi/colls/smpi_nbc_impl.cpp @@ -178,8 +178,10 @@ int Colls::iallgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype, void } int Colls::ialltoall( void *sendbuf, int sendcount, MPI_Datatype sendtype, void* recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm, MPI_Request* request){ -int system_tag = COLL_TAG_ALLTOALL; - MPI_Aint lb = 0, sendext = 0, recvext = 0; + int system_tag = COLL_TAG_ALLTOALL; + MPI_Aint lb = 0; + MPI_Aint sendext = 0; + MPI_Aint recvext = 0; /* Initialize. */ int rank = comm->rank(); diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 88c539ea51..862d3da275 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -684,7 +684,8 @@ int Request::testall(int count, MPI_Request requests[], int* outflag, MPI_Status { MPI_Status stat; MPI_Status *pstat = status == MPI_STATUSES_IGNORE ? MPI_STATUS_IGNORE : &stat; - int flag, error=0; + int flag; + int error = 0; int ret=MPI_SUCCESS; *outflag = 1; for(int i=0; i