Skip to content

Commit 73ecece

Browse files
authored
Merge pull request #7211 from mcoil1/pr/fixing-compiler-warnings
Fix a few compiler warnings
2 parents fb04596 + 52241db commit 73ecece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ompi/dpm/dpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ int ompi_dpm_connect_accept(ompi_communicator_t *comm, int root,
407407
}
408408
if (0 < opal_list_get_size(&ilist)) {
409409
uint32_t *peer_ranks = NULL;
410-
int prn, nprn;
410+
int prn, nprn = 0;
411411
char *val, *mycpuset;
412412
uint16_t u16;
413413
opal_process_name_t wildcard_rank;

ompi/mca/coll/libnbc/nbc_ialltoall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int nbc_alltoall_init(const void* sendbuf, int sendcount, MPI_Datatype se
7070
enum {NBC_A2A_LINEAR, NBC_A2A_PAIRWISE, NBC_A2A_DISS, NBC_A2A_INPLACE} alg;
7171
void *tmpbuf = NULL;
7272
ompi_coll_libnbc_module_t *libnbc_module = (ompi_coll_libnbc_module_t*) module;
73-
ptrdiff_t span, gap;
73+
ptrdiff_t span, gap = 0;
7474

7575
NBC_IN_PLACE(sendbuf, recvbuf, inplace);
7676

0 commit comments

Comments
 (0)