mtl ofi: squelch compiler warnings
gcc 5.2 complains: ``` mtl_ofi_component.c: In function ‘ompi_mtl_ofi_finalize’: mtl_ofi_component.c:613:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = fi_close((fid_t)ompi_mtl_ofi.fabric)) { ^ ``` Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
5a6ddf42d6
Коммит
a8686a6813
@ -594,23 +594,23 @@ ompi_mtl_ofi_finalize(struct mca_mtl_base_module_t *mtl)
|
||||
opal_progress_unregister(ompi_mtl_ofi_progress_no_inline);
|
||||
|
||||
/* Close all the OFI objects */
|
||||
if (ret = fi_close((fid_t)ompi_mtl_ofi.ep)) {
|
||||
if ((ret = fi_close((fid_t)ompi_mtl_ofi.ep))) {
|
||||
goto finalize_err;
|
||||
}
|
||||
|
||||
if (ret = fi_close((fid_t)ompi_mtl_ofi.cq)) {
|
||||
if ((ret = fi_close((fid_t)ompi_mtl_ofi.cq))) {
|
||||
goto finalize_err;
|
||||
}
|
||||
|
||||
if (ret = fi_close((fid_t)ompi_mtl_ofi.av)) {
|
||||
if ((ret = fi_close((fid_t)ompi_mtl_ofi.av))) {
|
||||
goto finalize_err;
|
||||
}
|
||||
|
||||
if (ret = fi_close((fid_t)ompi_mtl_ofi.domain)) {
|
||||
if ((ret = fi_close((fid_t)ompi_mtl_ofi.domain))) {
|
||||
goto finalize_err;
|
||||
}
|
||||
|
||||
if (ret = fi_close((fid_t)ompi_mtl_ofi.fabric)) {
|
||||
if ((ret = fi_close((fid_t)ompi_mtl_ofi.fabric))) {
|
||||
goto finalize_err;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user