Skip to content

Commit acaecb2

Browse files
committed
swat some compiler warnings
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 0b82252 commit acaecb2

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

ompi/mca/coll/base/coll_base_allgatherv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2009 University of Houston. All rights reserved.
14-
* Copyright (c) 2013 Los Alamos National Security, LLC. All Rights
14+
* Copyright (c) 2013-2017 Los Alamos National Security, LLC. All Rights
1515
* reserved.
1616
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
@@ -596,7 +596,7 @@ ompi_coll_base_allgatherv_intra_basic_default(const void *sbuf, int scount,
596596
struct ompi_communicator_t *comm,
597597
mca_coll_base_module_t *module)
598598
{
599-
int i, size, rank, err;
599+
int size, rank, err;
600600
MPI_Aint extent, lb;
601601
char *send_buf = NULL;
602602
struct ompi_datatype_t *newtype, *send_type;

ompi/mca/coll/libnbc/nbc_iallreduce.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Corporation. All rights reserved.
66
* Copyright (c) 2006 The Technical University of Chemnitz. All
77
* rights reserved.
8-
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
8+
* Copyright (c) 2013-2017 Los Alamos National Security, LLC. All rights
99
* reserved.
1010
* Copyright (c) 2014-2017 Research Organization for Information Science
1111
* and Technology (RIST). All rights reserved.
@@ -61,7 +61,7 @@ int ompi_coll_libnbc_iallreduce(const void* sendbuf, void* recvbuf, int count, M
6161
#endif
6262
enum { NBC_ARED_BINOMIAL, NBC_ARED_RING } alg;
6363
char inplace;
64-
NBC_Handle *handle;
64+
NBC_Handle *handle = NULL;
6565
ompi_coll_libnbc_module_t *libnbc_module = (ompi_coll_libnbc_module_t*) module;
6666
ptrdiff_t span, gap;
6767

ompi/mca/coll/libnbc/nbc_ialltoallv.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* rights reserved.
88
* Copyright (c) 2014-2016 Research Organization for Information Science
99
* and Technology (RIST). All rights reserved.
10-
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
10+
* Copyright (c) 2015-2017 Los Alamos National Security, LLC. All rights
1111
* reserved.
1212
*
1313
* Author(s): Torsten Hoefler <[email protected]>
@@ -214,6 +214,7 @@ int ompi_coll_libnbc_ialltoallv_inter (const void* sendbuf, const int *sendcount
214214
return OMPI_SUCCESS;
215215
}
216216

217+
__opal_attribute_unused__
217218
static inline int a2av_sched_linear(int rank, int p, NBC_Schedule *schedule,
218219
const void *sendbuf, const int *sendcounts, const int *sdispls,
219220
MPI_Aint sndext, MPI_Datatype sendtype,
@@ -248,6 +249,7 @@ static inline int a2av_sched_linear(int rank, int p, NBC_Schedule *schedule,
248249
return OMPI_SUCCESS;
249250
}
250251

252+
__opal_attribute_unused__
251253
static inline int a2av_sched_pairwise(int rank, int p, NBC_Schedule *schedule,
252254
const void *sendbuf, const int *sendcounts, const int *sdispls,
253255
MPI_Aint sndext, MPI_Datatype sendtype,

ompi/mca/coll/libnbc/nbc_ialltoallw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* rights reserved.
88
* Copyright (c) 2014-2016 Research Organization for Information Science
99
* and Technology (RIST). All rights reserved.
10-
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
10+
* Copyright (c) 2015-2017 Los Alamos National Security, LLC. All rights
1111
* reserved.
1212
*
1313
* Author(s): Torsten Hoefler <[email protected]>
@@ -218,6 +218,7 @@ static inline int a2aw_sched_linear(int rank, int p, NBC_Schedule *schedule,
218218
return OMPI_SUCCESS;
219219
}
220220

221+
__opal_attribute_unused__
221222
static inline int a2aw_sched_pairwise(int rank, int p, NBC_Schedule *schedule,
222223
const void *sendbuf, const int *sendcounts, const int *sdispls,
223224
struct ompi_datatype_t * const * sendtypes,

0 commit comments

Comments
 (0)