From 7a1d0ed1e978b9c32b1e0a73011f76c3b9e7033f Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 21 Oct 2019 11:32:33 +0200 Subject: [PATCH] Fix another dead store caught by cppcheck. --- src/smpi/mpi/smpi_request.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 0ec24c8ef3..d34a031538 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -614,7 +614,6 @@ int Request::test(MPI_Request * request, MPI_Status * status, int* flag) { int Request::testsome(int incount, MPI_Request requests[], int *count, int *indices, MPI_Status status[]) { - int ret = MPI_SUCCESS; int error=0; int count_dead = 0; int flag = 0; @@ -624,7 +623,7 @@ int Request::testsome(int incount, MPI_Request requests[], int *count, int *indi *count = 0; for (int i = 0; i < incount; i++) { if (requests[i] != MPI_REQUEST_NULL && not (requests[i]->flags_ & MPI_REQ_FINISHED)) { - ret = test(&requests[i], pstat, &flag); + int ret = test(&requests[i], pstat, &flag); if(ret!=MPI_SUCCESS) error = 1; if(flag) { -- 2.20.1