Skip to content

Commit 8431a00

Browse files
author
Ralph Castain
committed
Silence warnings
Signed-off-by: Ralph Castain <[email protected]>
1 parent 742c1c2 commit 8431a00

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

opal/mca/btl/usnic/btl_usnic_hwloc.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved.
3-
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2016-2018 Intel, Inc. All rights reserved.
44
* $COPYRIGHT$
55
*
66
* Additional copyrights may follow
@@ -41,8 +41,8 @@ static int get_distance_matrix(void)
4141
* responsible for freeing it. */
4242

4343
if (NULL == matrix) {
44-
matrix = hwloc_get_whole_distance_matrix_by_type(opal_hwloc_topology,
45-
HWLOC_OBJ_NODE);
44+
matrix = (struct hwloc_distances_s*)hwloc_get_whole_distance_matrix_by_type(opal_hwloc_topology,
45+
HWLOC_OBJ_NODE);
4646
}
4747

4848
return (NULL == matrix) ? OPAL_ERROR : OPAL_SUCCESS;

opal/mca/hwloc/base/hwloc_base_util.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2011-2017 Cisco Systems, Inc. All rights reserved
1414
* Copyright (c) 2012-2017 Los Alamos National Security, LLC.
1515
* All rights reserved.
16-
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2015-2017 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* $COPYRIGHT$
@@ -2047,8 +2047,9 @@ static void sort_by_dist(hwloc_topology_t topo, char* device_name, opal_list_t *
20472047
hwloc_obj_t root = NULL;
20482048
int depth;
20492049
unsigned i;
2050-
#endif
2050+
#else
20512051
unsigned distances_nr = 0;
2052+
#endif
20522053

20532054
for (device_obj = hwloc_get_obj_by_type(topo, HWLOC_OBJ_OS_DEVICE, 0); device_obj; device_obj = hwloc_get_next_osdev(topo, device_obj)) {
20542055
if (device_obj->attr->osdev.type == HWLOC_OBJ_OSDEV_OPENFABRICS
@@ -2070,7 +2071,7 @@ static void sort_by_dist(hwloc_topology_t topo, char* device_name, opal_list_t *
20702071

20712072
/* find distance matrix for all numa nodes */
20722073
#if HWLOC_API_VERSION < 0x20000
2073-
distances = hwloc_get_whole_distance_matrix_by_type(topo, HWLOC_OBJ_NODE);
2074+
distances = (struct hwloc_distances_s*)hwloc_get_whole_distance_matrix_by_type(topo, HWLOC_OBJ_NODE);
20742075
if (NULL == distances) {
20752076
/* we can try to find distances under group object. This info can be there. */
20762077
depth = hwloc_get_type_depth(topo, HWLOC_OBJ_NODE);

0 commit comments

Comments
 (0)