Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare one identifier per statement.
[simgrid.git] / src / smpi / mpi / smpi_request.cpp
index 88c539e..862d3da 100644 (file)
@@ -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<count; i++){