1
1

Fix a bunch of compiler warnings reported by Jeff

This commit was SVN r22930.
Этот коммит содержится в:
Ralph Castain 2010-04-03 00:20:19 +00:00
родитель 84c7973df8
Коммит 1caba7af2f
6 изменённых файлов: 22 добавлений и 9 удалений

Просмотреть файл

@ -561,7 +561,7 @@ static int orte_errmgr_base_stabalize_runtime(orte_job_t *jdata,
orte_process_name_t *proc,
orte_proc_state_t state)
{
orte_proc_t *loc_proc, *child_proc;
orte_proc_t *loc_proc=NULL, *child_proc;
orte_std_cntr_t i_proc;
int32_t i;
@ -598,6 +598,15 @@ static int orte_errmgr_base_stabalize_runtime(orte_job_t *jdata,
break;
}
/*
* RHC: Since we do not handle the recovery from such errors yet, just
* skip processing, and go to the abort sequence.
*/
if (NULL == loc_proc) {
return ORTE_SUCCESS;
}
/*
* If this is a part of the control plane (HNP/orted)
*/

Просмотреть файл

@ -459,7 +459,7 @@ static void process_orted_launch_report(int fd, short event, void *data)
long secs, usecs;
int64_t setupsec, setupusec;
int64_t startsec, startusec;
orte_proc_t *daemon;
orte_proc_t *daemon=NULL;
int32_t i, num_values;
opal_sysinfo_value_t *info;
orte_node_t *node;
@ -646,7 +646,8 @@ CLEANUP:
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
orted_failed_launch ? "failed" : "completed",
ORTE_NAME_PRINT(&peer),
ORTE_NAME_PRINT(&mev->sender), daemon->rml_uri));
ORTE_NAME_PRINT(&mev->sender),
(NULL == daemon) ? "UNKNOWN" : daemon->rml_uri));
/* release the message */
OBJ_RELEASE(mev);

Просмотреть файл

@ -960,7 +960,7 @@ plm_rsh_report_orted_launch(int status, orte_process_name_t* sender,
orte_process_name_t peer;
char *rml_uri = NULL;
int rc, idx;
orte_proc_t *daemon;
orte_proc_t *daemon=NULL;
orte_job_t *jdatorted;
orted_failed_launch = true;
@ -1024,7 +1024,8 @@ CLEANUP:
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
orted_failed_launch ? "failed" : "completed",
ORTE_NAME_PRINT(&peer),
ORTE_NAME_PRINT(sender), daemon->rml_uri));
ORTE_NAME_PRINT(sender),
(NULL == daemon) ? "UNKNOWN" : daemon->rml_uri));
if (orted_failed_launch) {
if( NULL != rml_uri ) free(rml_uri);

Просмотреть файл

@ -186,7 +186,7 @@ static int nperboard(orte_job_t *jdata)
orte_std_cntr_t num_slots;
orte_node_t *node;
int np, nprocs;
int num_boards;
int num_boards=orte_default_num_boards;
/* setup the node list */
OBJ_CONSTRUCT(&node_list, opal_list_t);
@ -280,7 +280,7 @@ static int npersocket(orte_job_t *jdata)
orte_std_cntr_t num_slots;
orte_node_t *node;
int np, nprocs;
int num_sockets;
int num_sockets=orte_default_num_sockets_per_board;
/* setup the node list */
OBJ_CONSTRUCT(&node_list, opal_list_t);

Просмотреть файл

@ -116,7 +116,7 @@ static int orte_rmaps_resilient_map(orte_job_t *jdata)
opal_list_t node_list;
opal_list_item_t *item;
orte_std_cntr_t num_slots;
int rc;
int rc=ORTE_SUCCESS;
float avgload, minload;
orte_node_t *node, *nd=NULL, *oldnode;
orte_rmaps_res_ftgrp_t *ftgrp, *target = NULL;
@ -200,6 +200,7 @@ static int orte_rmaps_resilient_map(orte_job_t *jdata)
app = (orte_app_context_t*)opal_pointer_array_get_item(jdata->apps, proc->app_idx);
if( NULL == app ) {
ORTE_ERROR_LOG(ORTE_ERROR);
rc = ORTE_ERROR;
goto error;
}
@ -286,6 +287,7 @@ static int orte_rmaps_resilient_map(orte_job_t *jdata)
nd = (orte_node_t*)opal_list_get_first(&node_list);
if( NULL == nd ) {
ORTE_ERROR_LOG(ORTE_ERROR);
rc = ORTE_ERROR;
goto error;
}

Просмотреть файл

@ -157,7 +157,7 @@ cleanup:
static int parse_dash_host(char ***mapped_nodes, char** host_argv)
{
orte_std_cntr_t j, k;
int rc;
int rc=ORTE_SUCCESS;
char **mini_map, *cptr;
int nodeidx;
orte_node_t *node;