Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit c24dd38

Browse files
Ralph Castainjsquyres
authored andcommitted
Silence the warnings
(cherry picked from commit open-mpi/ompi@6549c87)
1 parent 07cabe2 commit c24dd38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ompi/mca/osc/pt2pt/osc_pt2pt_data_move.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ int ompi_osc_pt2pt_frag_start_receive (ompi_osc_pt2pt_module_t *module)
17091709
return OMPI_ERR_OUT_OF_RESOURCE;
17101710
}
17111711

1712-
for (int i = 0 ; i < module->recv_frag_count ; ++i) {
1712+
for (unsigned int i = 0 ; i < module->recv_frag_count ; ++i) {
17131713
OBJ_CONSTRUCT(module->recv_frags + i, ompi_osc_pt2pt_receive_t);
17141714
module->recv_frags[i].module = module;
17151715
module->recv_frags[i].buffer = malloc (mca_osc_pt2pt_component.buffer_size + sizeof (ompi_osc_pt2pt_frag_header_t));

ompi/mca/osc/pt2pt/osc_pt2pt_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int ompi_osc_pt2pt_free(ompi_win_t *win)
9494
OBJ_DESTRUCT(&module->peer_lock);
9595

9696
if (NULL != module->recv_frags) {
97-
for (int i = 0 ; i < module->recv_frag_count ; ++i) {
97+
for (unsigned int i = 0 ; i < module->recv_frag_count ; ++i) {
9898
OBJ_DESTRUCT(module->recv_frags + i);
9999
}
100100

0 commit comments

Comments
 (0)