From 46362d2761843a2bfdd8f61be10d912b9a4c394c Mon Sep 17 00:00:00 2001 From: Joshua Ladd Date: Wed, 12 Jun 2013 16:25:25 +0000 Subject: [PATCH] Stomps compiler warnings in HCA min-dist calculation. This should be added to cmr:v1.7:reviewer=jladd This commit was SVN r28620. --- opal/mca/hwloc/base/hwloc_base_dt.c | 1 - opal/mca/hwloc/base/hwloc_base_util.c | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/opal/mca/hwloc/base/hwloc_base_dt.c b/opal/mca/hwloc/base/hwloc_base_dt.c index cc2f37aabd..07da82a0f0 100644 --- a/opal/mca/hwloc/base/hwloc_base_dt.c +++ b/opal/mca/hwloc/base/hwloc_base_dt.c @@ -150,7 +150,6 @@ int opal_hwloc_unpack(opal_buffer_t *buffer, void *dest, int opal_hwloc_copy(hwloc_topology_t *dest, hwloc_topology_t src, opal_data_type_t type) { - int i; char *xml; int len; struct hwloc_topology_support *support, *destsupport; diff --git a/opal/mca/hwloc/base/hwloc_base_util.c b/opal/mca/hwloc/base/hwloc_base_util.c index 9cd0f730ef..7aeb92ab8f 100644 --- a/opal/mca/hwloc/base/hwloc_base_util.c +++ b/opal/mca/hwloc/base/hwloc_base_util.c @@ -1653,12 +1653,11 @@ static void sort_by_dist(hwloc_topology_t topo, const char* device_name, opal_li hwloc_obj_t device_obj = NULL; hwloc_obj_t obj = NULL, root = NULL; const struct hwloc_distances_s* distances; - opal_list_item_t *numa_item; orte_rmaps_numa_node_t *numa_node; int close_node_index; float latency; - int j; - int depth; + unsigned int j; + unsigned int depth; unsigned i; 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)) {