Skip to content

Commit dbd8161

Browse files
jsquyreshjelmn
authored andcommitted
proc.c: fix some compiler warnings
Eliminate unused variables and fix a signed/unsigned comparison issue. (cherry picked from open-mpi/ompi@9045d6d)
1 parent 9e69fe0 commit dbd8161

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ompi/proc/proc.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2006 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved
@@ -463,10 +463,7 @@ ompi_proc_t **ompi_proc_get_allocated (size_t *size)
463463
ompi_proc_t **ompi_proc_world (size_t *size)
464464
{
465465
ompi_proc_t **procs;
466-
ompi_proc_t *proc;
467466
size_t count = 0;
468-
ompi_rte_cmp_bitmask_t mask;
469-
ompi_process_name_t my_name;
470467

471468
/* check bozo case */
472469
if (NULL == ompi_proc_local_proc) {
@@ -483,7 +480,7 @@ ompi_proc_t **ompi_proc_world (size_t *size)
483480
}
484481

485482
/* now get/allocate all the procs in this jobid */
486-
for (int i = 0 ; i < count ; ++i) {
483+
for (size_t i = 0 ; i < count ; ++i) {
487484
opal_process_name_t name = {.jobid = OMPI_CAST_RTE_NAME(&ompi_proc_local_proc->super.proc_name)->jobid,
488485
.vpid = i};
489486

0 commit comments

Comments
 (0)