Cleanup some compiler warnings, some of which are actual logic errors
This commit was SVN r26519.
Этот коммит содержится в:
родитель
d7ac424d8d
Коммит
9bedb25dda
@ -1047,7 +1047,7 @@ int opal_hwloc_base_slot_list_parse(const char *slot_str,
|
||||
|
||||
static opal_hwloc_locality_t get_locality(opal_hwloc_level_t level)
|
||||
{
|
||||
opal_hwloc_locality_t lvl;
|
||||
opal_hwloc_locality_t lvl = OPAL_PROC_LOCALITY_UNKNOWN;
|
||||
|
||||
switch(level) {
|
||||
case OPAL_HWLOC_NODE_LEVEL:
|
||||
|
@ -442,7 +442,7 @@ static void launch_daemons(int fd, short args, void *cbdata)
|
||||
*/
|
||||
static int plm_slurm_terminate_orteds(void)
|
||||
{
|
||||
int rc;
|
||||
int rc=ORTE_SUCCESS;
|
||||
orte_job_t *jdata;
|
||||
|
||||
/* check to see if the primary pid is set. If not, this indicates
|
||||
|
@ -824,7 +824,7 @@ static int map_to_ftgrps(orte_job_t *jdata)
|
||||
(NULL == target) ? -1 : target->ftgrp, nd->name));
|
||||
/* if the node isn't in the map, add it */
|
||||
if (!nd->mapped) {
|
||||
OBJ_RETAIN(node);
|
||||
OBJ_RETAIN(nd);
|
||||
opal_pointer_array_add(map->nodes, nd);
|
||||
nd->mapped = true;
|
||||
}
|
||||
|
@ -666,7 +666,7 @@ static int byobj_span(orte_job_t *jdata,
|
||||
* safely remove this node as we don't need it
|
||||
*/
|
||||
if (0 == extra_procs_to_assign) {
|
||||
opal_pointer_array_set_item(jdata->map->nodes, idx, NULL);
|
||||
opal_pointer_array_set_item(jdata->map->nodes, node->index, NULL);
|
||||
OBJ_RELEASE(node);
|
||||
--(jdata->map->num_nodes);
|
||||
/* update how many we are lagging behind */
|
||||
|
@ -1252,6 +1252,11 @@ int orte_util_decode_daemon_pidmap(opal_byte_object_t *bo)
|
||||
proc->name.vpid = i;
|
||||
opal_pointer_array_set_item(jdata->procs, i, proc);
|
||||
}
|
||||
if (NULL == (node = (orte_node_t*)opal_pointer_array_get_item(orte_node_pool, nodes[i]))) {
|
||||
/* this should never happen, but protect ourselves anyway */
|
||||
node = OBJ_NEW(orte_node_t);
|
||||
opal_pointer_array_set_item(orte_node_pool, nodes[i], node);
|
||||
}
|
||||
if (NULL != proc->node) {
|
||||
if (node != proc->node) {
|
||||
/* proc has moved - cleanup the prior node proc array */
|
||||
@ -1285,11 +1290,6 @@ int orte_util_decode_daemon_pidmap(opal_byte_object_t *bo)
|
||||
}
|
||||
OBJ_RELEASE(proc->node);
|
||||
}
|
||||
if (NULL == (node = (orte_node_t*)opal_pointer_array_get_item(orte_node_pool, nodes[i]))) {
|
||||
/* this should never happen, but protect ourselves anyway */
|
||||
node = OBJ_NEW(orte_node_t);
|
||||
opal_pointer_array_set_item(orte_node_pool, nodes[i], node);
|
||||
}
|
||||
/* see if this node is already in the map */
|
||||
found = false;
|
||||
for (j=0; j < map->nodes->size; j++) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user