Skip to content

Commit 50291fb

Browse files
authored
Merge pull request #1797 from jsquyres/pr/compiler-warning-fixes
openib: fix compiler warnings
2 parents 9c4f56b + 7a8d7fb commit 50291fb

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
@@ -428,7 +428,6 @@ static int openib_btl_size_queues(struct mca_btl_openib_module_t* openib_btl)
428428
int rc = OPAL_SUCCESS;
429429
mca_btl_openib_device_t *device = openib_btl->device;
430430
uint32_t requested[BTL_OPENIB_MAX_CQ];
431-
bool need_resize = false;
432431

433432
opal_mutex_lock(&openib_btl->ib_lock);
434433

@@ -455,7 +454,7 @@ static int openib_btl_size_queues(struct mca_btl_openib_module_t* openib_btl)
455454
for (int cq = 0 ; cq < BTL_OPENIB_MAX_CQ ; ++cq) {
456455
if (requested[cq] < mca_btl_openib_component.ib_cq_size[cq]) {
457456
requested[cq] = mca_btl_openib_component.ib_cq_size[cq];
458-
} else if (requested[cq] > openib_btl->device->ib_dev_attr.max_cqe) {
457+
} else if (requested[cq] > (uint32_t) openib_btl->device->ib_dev_attr.max_cqe) {
459458
requested[cq] = openib_btl->device->ib_dev_attr.max_cqe;
460459
}
461460

0 commit comments

Comments
 (0)