1
1

Silence some minor compiler warnings

This commit was SVN r17662.
Этот коммит содержится в:
Ralph Castain 2008-02-29 02:39:39 +00:00
родитель 827e8d877e
Коммит a585923de1
5 изменённых файлов: 10 добавлений и 10 удалений

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

@ -851,7 +851,7 @@ int orte_odls_base_default_launch_local(orte_jobid_t job,
orte_odls_child_t *child; orte_odls_child_t *child;
int i, num_processors; int i, num_processors;
bool want_processor, oversubscribed; bool want_processor, oversubscribed;
int rc, ret; int rc=ORTE_SUCCESS, ret;
bool launch_failed=true; bool launch_failed=true;
opal_buffer_t alert; opal_buffer_t alert;
orte_std_cntr_t proc_rank; orte_std_cntr_t proc_rank;

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

@ -373,7 +373,6 @@ static bool app_launch_failed;
void orte_plm_base_app_report_launch(int fd, short event, void *data) void orte_plm_base_app_report_launch(int fd, short event, void *data)
{ {
orte_message_event_t *mev = (orte_message_event_t*)data; orte_message_event_t *mev = (orte_message_event_t*)data;
orte_process_name_t *sender = &(mev->sender);
opal_buffer_t *buffer = mev->buffer; opal_buffer_t *buffer = mev->buffer;
orte_std_cntr_t cnt; orte_std_cntr_t cnt;
orte_jobid_t jobid; orte_jobid_t jobid;
@ -388,14 +387,15 @@ void orte_plm_base_app_report_launch(int fd, short event, void *data)
OPAL_OUTPUT_VERBOSE((5, orte_plm_globals.output, OPAL_OUTPUT_VERBOSE((5, orte_plm_globals.output,
"%s plm:base:app_report_launch from daemon %s", "%s plm:base:app_report_launch from daemon %s",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
ORTE_NAME_PRINT(sender))); ORTE_NAME_PRINT(&mev->sender)));
/* unpack the jobid being reported */ /* unpack the jobid being reported */
cnt = 1; cnt = 1;
if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &jobid, &cnt, ORTE_JOBID))) { if (ORTE_SUCCESS != (rc = opal_dss.unpack(buffer, &jobid, &cnt, ORTE_JOBID))) {
ORTE_ERROR_LOG(rc); ORTE_ERROR_LOG(rc);
app_launch_failed = true; app_launch_failed = true;
goto CLEANUP; orte_errmgr.incomplete_start(-1, -1); /* no way to know the jobid or exit code */
return;
} }
/* get the job data object */ /* get the job data object */
if (NULL == (jdata = orte_get_job_data_object(jobid))) { if (NULL == (jdata = orte_get_job_data_object(jobid))) {
@ -441,7 +441,7 @@ void orte_plm_base_app_report_launch(int fd, short event, void *data)
"%s plm:base:app_report_launched for proc %s from daemon %s: pid %lu state %0x exit %d", "%s plm:base:app_report_launched for proc %s from daemon %s: pid %lu state %0x exit %d",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
ORTE_NAME_PRINT(&(procs[vpid]->name)), ORTE_NAME_PRINT(&(procs[vpid]->name)),
ORTE_NAME_PRINT(sender), (unsigned long)pid, ORTE_NAME_PRINT(&mev->sender), (unsigned long)pid,
(int)state, (int)exit_code)); (int)state, (int)exit_code));
/* lookup the proc and update values */ /* lookup the proc and update values */
@ -452,7 +452,7 @@ void orte_plm_base_app_report_launch(int fd, short event, void *data)
OPAL_OUTPUT_VERBOSE((5, orte_plm_globals.output, OPAL_OUTPUT_VERBOSE((5, orte_plm_globals.output,
"%s plm:base:app_report_launched daemon %s reports proc %s failed to start", "%s plm:base:app_report_launched daemon %s reports proc %s failed to start",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),
ORTE_NAME_PRINT(sender), ORTE_NAME_PRINT(&mev->sender),
ORTE_NAME_PRINT(&(procs[vpid]->name)))); ORTE_NAME_PRINT(&(procs[vpid]->name))));
if (NULL == jdata->aborted_proc) { if (NULL == jdata->aborted_proc) {
jdata->aborted_proc = procs[vpid]; /* only store this once */ jdata->aborted_proc = procs[vpid]; /* only store this once */

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

@ -136,7 +136,7 @@ static int plm_md_launch_job(orte_job_t *jdata)
char *param; char *param;
char **argv = NULL; char **argv = NULL;
int argc; int argc;
int rc; int rc=ORTE_SUCCESS;
char *tmp; char *tmp;
char** env = NULL; char** env = NULL;
char* var; char* var;

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

@ -501,7 +501,7 @@ static int process_commands(orte_process_name_t* sender,
} else { } else {
/* if we are the HNP, process the request */ /* if we are the HNP, process the request */
orte_std_cntr_t i, num_jobs=0; orte_std_cntr_t i, num_jobs=0;
orte_job_t **jobs, *jobdat; orte_job_t **jobs=NULL, *jobdat;
/* unpack the jobid */ /* unpack the jobid */
n = 1; n = 1;
@ -660,7 +660,7 @@ static int process_commands(orte_process_name_t* sender,
} else { } else {
/* if we are the HNP, process the request */ /* if we are the HNP, process the request */
orte_job_t *jdata; orte_job_t *jdata;
orte_proc_t **procs; orte_proc_t **procs=NULL;
orte_vpid_t num_procs=0, vpid; orte_vpid_t num_procs=0, vpid;
orte_std_cntr_t i; orte_std_cntr_t i;

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

@ -419,7 +419,7 @@ static int pretty_print_nodes(orte_node_t **nodes, orte_std_cntr_t num_nodes) {
len_slots_m = 0; len_slots_m = 0;
orte_node_t *node; orte_node_t *node;
orte_std_cntr_t i; orte_std_cntr_t i;
char *nid; char *nid=NULL;
/* /*
* Caculate segment lengths * Caculate segment lengths