Only declare ret in the block where it is used (avoid a warning about
unused variable). This commit was SVN r17638.
Этот коммит содержится в:
родитель
7879e0b9c2
Коммит
d9937cca81
@ -51,7 +51,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
|
|||||||
int errcode,
|
int errcode,
|
||||||
bool kill_remote_of_intercomm)
|
bool kill_remote_of_intercomm)
|
||||||
{
|
{
|
||||||
int count = 0, i, ret = OMPI_SUCCESS;
|
int count = 0, i;
|
||||||
char *host, hostname[MAXHOSTNAMELEN];
|
char *host, hostname[MAXHOSTNAMELEN];
|
||||||
pid_t pid = 0;
|
pid_t pid = 0;
|
||||||
orte_process_name_t *abort_procs;
|
orte_process_name_t *abort_procs;
|
||||||
@ -182,7 +182,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
|
|||||||
|
|
||||||
if (nabort_procs > 0) {
|
if (nabort_procs > 0) {
|
||||||
#if 0
|
#if 0
|
||||||
ret = orte_errmgr.abort_procs_request(abort_procs, nabort_procs);
|
int ret = orte_errmgr.abort_procs_request(abort_procs, nabort_procs);
|
||||||
if (OMPI_SUCCESS != ret) {
|
if (OMPI_SUCCESS != ret) {
|
||||||
orte_errmgr.abort(ret, "Open MPI failed to abort procs as requested (%d). Exiting.", ret);
|
orte_errmgr.abort(ret, "Open MPI failed to abort procs as requested (%d). Exiting.", ret);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user