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

Commit f352bf8

Browse files
authored
Merge pull request #1235 from jsquyres/pr/v2.0.0/fix-openib-compiler-warnings
openib: fix compiler warnings
2 parents 3d74956 + 464774c commit f352bf8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opal/mca/btl/openib/btl_openib.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ static int openib_btl_size_queues(struct mca_btl_openib_module_t* openib_btl)
424424
int rc = OPAL_SUCCESS;
425425
mca_btl_openib_device_t *device = openib_btl->device;
426426
uint32_t requested[BTL_OPENIB_MAX_CQ];
427-
bool need_resize = false;
428427

429428
opal_mutex_lock(&openib_btl->ib_lock);
430429

@@ -451,7 +450,7 @@ static int openib_btl_size_queues(struct mca_btl_openib_module_t* openib_btl)
451450
for (int cq = 0 ; cq < BTL_OPENIB_MAX_CQ ; ++cq) {
452451
if (requested[cq] < mca_btl_openib_component.ib_cq_size[cq]) {
453452
requested[cq] = mca_btl_openib_component.ib_cq_size[cq];
454-
} else if (requested[cq] > openib_btl->device->ib_dev_attr.max_cqe) {
453+
} else if (requested[cq] > (uint32_t) openib_btl->device->ib_dev_attr.max_cqe) {
455454
requested[cq] = openib_btl->device->ib_dev_attr.max_cqe;
456455
}
457456

0 commit comments

Comments
 (0)