Skip to content

Commit c87a3df

Browse files
authored
Merge pull request #5416 from kawashima-fj/pr/coll-libnbc-suppress-warnings
coll/libnbc: Suppress compiler warnings
2 parents 98aba03 + 37a05e7 commit c87a3df

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ompi/mca/coll/libnbc/coll_libnbc_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ OBJ_CLASS_INSTANCE(ompi_coll_libnbc_module_t,
388388
static int
389389
request_start(size_t count, ompi_request_t ** requests)
390390
{
391-
int i, res;
391+
int res;
392+
size_t i;
392393

393394
NBC_DEBUG(5, " ** request_start **\n");
394395

ompi/mca/coll/libnbc/nbc_ialltoallv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int nbc_alltoallv_init(const void* sendbuf, const int *sendcounts, const
5050
MPI_Aint sndext, rcvext;
5151
NBC_Schedule *schedule;
5252
char *rbuf, *sbuf, inplace;
53-
ptrdiff_t gap, span;
53+
ptrdiff_t gap = 0, span;
5454
void * tmpbuf = NULL;
5555
ompi_coll_libnbc_module_t *libnbc_module = (ompi_coll_libnbc_module_t*) module;
5656

ompi/mca/coll/libnbc/nbc_ialltoallw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static inline int a2aw_sched_pairwise(int rank, int p, NBC_Schedule *schedule,
294294
static inline int a2aw_sched_inplace(int rank, int p, NBC_Schedule *schedule,
295295
void *buf, const int *counts, const int *displs,
296296
struct ompi_datatype_t * const * types) {
297-
ptrdiff_t gap;
297+
ptrdiff_t gap = 0;
298298
int res;
299299

300300
for (int i = 1; i < (p+1)/2; i++) {

0 commit comments

Comments
 (0)