Skip to content

Commit e04cb5a

Browse files
committed
ompi/c: remove unused variable in [i]gatherv
Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit 43ee08b)
1 parent 8dd0a6d commit e04cb5a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ompi/mpi/c/gatherv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -48,11 +48,9 @@ int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
4848
int i, size, err;
4949

5050
MEMCHECKER(
51-
int rank;
5251
ptrdiff_t ext;
5352

5453
size = ompi_comm_remote_size(comm);
55-
rank = ompi_comm_rank(comm);
5654
ompi_datatype_type_extent(recvtype, &ext);
5755

5856
memchecker_comm(comm);

ompi/mpi/c/igatherv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -48,11 +48,9 @@ int MPI_Igatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
4848
int i, size, err;
4949

5050
MEMCHECKER(
51-
int rank;
5251
ptrdiff_t ext;
5352

5453
size = ompi_comm_remote_size(comm);
55-
rank = ompi_comm_rank(comm);
5654
ompi_datatype_type_extent(recvtype, &ext);
5755

5856
memchecker_comm(comm);

0 commit comments

Comments
 (0)