Silence compiler warnings about variables used before init
This commit was SVN r20406.
Этот коммит содержится в:
родитель
7282be4287
Коммит
645f4c1f20
@ -103,7 +103,7 @@ static int hnp_push(const orte_process_name_t* dst_name, orte_iof_tag_t src_tag,
|
|||||||
int flags;
|
int flags;
|
||||||
char *outfile;
|
char *outfile;
|
||||||
int fdout;
|
int fdout;
|
||||||
orte_odls_job_t *jobdat;
|
orte_odls_job_t *jobdat=NULL;
|
||||||
int np, numdigs;
|
int np, numdigs;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
@ -155,6 +155,10 @@ static int hnp_push(const orte_process_name_t* dst_name, orte_iof_tag_t src_tag,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (NULL == jobdat) {
|
||||||
|
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
|
||||||
|
return ORTE_ERR_NOT_FOUND;
|
||||||
|
}
|
||||||
np = jobdat->num_procs / 10;
|
np = jobdat->num_procs / 10;
|
||||||
/* determine the number of digits required for max vpid */
|
/* determine the number of digits required for max vpid */
|
||||||
numdigs = 1;
|
numdigs = 1;
|
||||||
|
@ -95,7 +95,7 @@ static int orted_push(const orte_process_name_t* dst_name, orte_iof_tag_t src_ta
|
|||||||
orte_iof_sink_t *sink;
|
orte_iof_sink_t *sink;
|
||||||
char *outfile;
|
char *outfile;
|
||||||
int fdout;
|
int fdout;
|
||||||
orte_odls_job_t *jobdat;
|
orte_odls_job_t *jobdat=NULL;
|
||||||
int np, numdigs;
|
int np, numdigs;
|
||||||
|
|
||||||
OPAL_OUTPUT_VERBOSE((1, orte_iof_base.iof_output,
|
OPAL_OUTPUT_VERBOSE((1, orte_iof_base.iof_output,
|
||||||
@ -141,6 +141,10 @@ static int orted_push(const orte_process_name_t* dst_name, orte_iof_tag_t src_ta
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (NULL == jobdat) {
|
||||||
|
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
|
||||||
|
return ORTE_ERR_NOT_FOUND;
|
||||||
|
}
|
||||||
np = jobdat->num_procs / 10;
|
np = jobdat->num_procs / 10;
|
||||||
/* determine the number of digits required for max vpid */
|
/* determine the number of digits required for max vpid */
|
||||||
numdigs = 1;
|
numdigs = 1;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user