Skip to content

Commit f9c65a7

Browse files
committed
usnic: "sin" assignment needs to be outside the #if
The "sin" variable is used below; need to ensure that it is assigned for all builds (not just debug builds).
1 parent cd87c8a commit f9c65a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,12 +1450,13 @@ static int create_ep(opal_btl_usnic_module_t* module,
14501450
sa = (struct sockaddr *)channel->info->src_addr;
14511451
assert(AF_INET == sa->sa_family);
14521452
}
1453+
#endif
1454+
14531455
sin = (struct sockaddr_in *)channel->info->src_addr;
14541456
assert(sizeof(struct sockaddr_in) == channel->info->src_addrlen);
14551457

14561458
/* no matter the version of libfabric, this should hold */
14571459
assert(0 == sin->sin_port);
1458-
#endif
14591460

14601461
rc = fi_endpoint(module->domain, channel->info, &channel->ep, NULL);
14611462
if (0 != rc || NULL == channel->ep) {

0 commit comments

Comments
 (0)