From d9937cca8115e85ba56e563ba4413ef3930d6c84 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 28 Feb 2008 06:18:57 +0000 Subject: [PATCH] Only declare ret in the block where it is used (avoid a warning about unused variable). This commit was SVN r17638. --- ompi/runtime/ompi_mpi_abort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/runtime/ompi_mpi_abort.c b/ompi/runtime/ompi_mpi_abort.c index 21ee80b46c..d1ce4072ad 100644 --- a/ompi/runtime/ompi_mpi_abort.c +++ b/ompi/runtime/ompi_mpi_abort.c @@ -51,7 +51,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm, int errcode, bool kill_remote_of_intercomm) { - int count = 0, i, ret = OMPI_SUCCESS; + int count = 0, i; char *host, hostname[MAXHOSTNAMELEN]; pid_t pid = 0; orte_process_name_t *abort_procs; @@ -182,7 +182,7 @@ ompi_mpi_abort(struct ompi_communicator_t* comm, if (nabort_procs > 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) { orte_errmgr.abort(ret, "Open MPI failed to abort procs as requested (%d). Exiting.", ret); }