1
1

OPAL_ENABLE_FT_CR: remove compiler warnings

When compiling --with-ft there are a few compiler warnings about
unused variables. This patch fixes those compiler warnings.

This commit was SVN r30927.
Этот коммит содержится в:
Adrian Reber 2014-03-04 15:28:07 +00:00
родитель c2ae29d860
Коммит e5bef82ee1
8 изменённых файлов: 8 добавлений и 20 удалений

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

@ -165,10 +165,6 @@ static int mca_pml_base_close(void)
*/
static int mca_pml_base_open(mca_base_open_flag_t flags)
{
#if OPAL_ENABLE_FT_CR == 1
char* wrapper_pml = NULL;
#endif
/**
* Construct the send and receive request queues. There are 2 reasons to do it
* here. First, as they are globals it's better to construct them in one common

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

@ -70,7 +70,6 @@ int mca_pml_base_select(bool enable_progress_threads,
bool found_pml;
#if OPAL_ENABLE_FT_CR == 1
mca_pml_base_component_t *wrapper_component = NULL;
mca_pml_base_module_t *wrapper_module = NULL;
int wrapper_priority = -1;
#endif
@ -144,7 +143,6 @@ int mca_pml_base_select(bool enable_progress_threads,
component->pmlm_version.mca_component_name, priority );
wrapper_priority = priority;
wrapper_component = component;
wrapper_module = module;
continue;
}
/* Otherwise determine if this is the best component */

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

@ -89,7 +89,7 @@ ORTE_DECLSPEC int orte_errmgr_base_restart_job(orte_jobid_t jobid, char * global
ORTE_DECLSPEC int orte_errmgr_base_migrate_job(orte_jobid_t jobid, orte_snapc_base_request_op_t *datum);
/* Interface to report process state to the notifier */
ORTE_DECLSPEC int orte_errmgr_base_proc_state_notify(orte_proc_state_t state, orte_process_name_t *proc);
ORTE_DECLSPEC void orte_errmgr_base_proc_state_notify(orte_proc_state_t state, orte_process_name_t *proc);
#endif /* OPAL_ENABLE_FT_CR */

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

@ -366,7 +366,7 @@ void orte_errmgr_base_migrate_state_notify(int state)
}
}
int orte_errmgr_base_proc_state_notify(orte_proc_state_t state, orte_process_name_t *proc)
void orte_errmgr_base_proc_state_notify(orte_proc_state_t state, orte_process_name_t *proc)
{
if (NULL != proc) {
switch(state) {
@ -442,7 +442,7 @@ int orte_errmgr_base_update_app_context_for_cr_recovery(orte_job_t *jobdata,
orte_proc_t *proc,
opal_list_t *local_snapshots)
{
int ret, exit_status = ORTE_SUCCESS;
int exit_status = ORTE_SUCCESS;
opal_list_item_t *item = NULL;
orte_std_cntr_t i_app;
int argc = 0;
@ -513,8 +513,8 @@ int orte_errmgr_base_update_app_context_for_cr_recovery(orte_job_t *jobdata,
}
if( NULL == cur_app_context ) {
ORTE_ERROR_LOG(ret);
exit_status = ret;
ORTE_ERROR_LOG(ORTE_ERROR);
exit_status = ORTE_ERROR;
goto cleanup;
}

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

@ -273,7 +273,7 @@ static int errmgr_base_tool_start_cmdline_listener(void)
static int errmgr_base_tool_stop_cmdline_listener(void)
{
int ret, exit_status = ORTE_SUCCESS;
int exit_status = ORTE_SUCCESS;
if (!errmgr_cmdline_recv_issued && ORTE_PROC_IS_HNP) {
return ORTE_SUCCESS;

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

@ -182,8 +182,6 @@ static int sstore_stage_select (void)
static int sstore_stage_open(void)
{
int mca_index, value;
/* If there is a custom verbose level for this component than use it
* otherwise take our parents level and output channel
*/

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

@ -574,7 +574,7 @@ static void hnp_receiver(int status,
static void process_ckpt_update_cmd(orte_process_name_t* sender,
opal_buffer_t* buffer)
{
int ret, exit_status = ORTE_SUCCESS;
int ret;
orte_std_cntr_t count = 1;
int ckpt_status = ORTE_ERRMGR_MIGRATE_STATE_NONE;
@ -584,7 +584,6 @@ static void process_ckpt_update_cmd(orte_process_name_t* sender,
*/
count = 1;
if ( ORTE_SUCCESS != (ret = opal_dss.unpack(buffer, &ckpt_status, &count, OPAL_INT)) ) {
exit_status = ret;
goto cleanup;
}
orte_migrate_ckpt_status = ckpt_status;
@ -596,7 +595,6 @@ static void process_ckpt_update_cmd(orte_process_name_t* sender,
opal_show_help("help-orte-migrate.txt", "non-ckptable",
true,
orte_migrate_globals.pid);
exit_status = ORTE_ERROR;
goto cleanup;
}
@ -608,7 +606,6 @@ static void process_ckpt_update_cmd(orte_process_name_t* sender,
opal_show_help("help-orte-migrate.txt", "err-inprogress",
true,
orte_migrate_globals.pid);
exit_status = ORTE_ERROR;
goto cleanup;
}
@ -619,7 +616,6 @@ static void process_ckpt_update_cmd(orte_process_name_t* sender,
opal_show_help("help-orte-migrate.txt", "err-other",
true,
orte_migrate_globals.pid);
exit_status = ORTE_ERROR;
goto cleanup;
}

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

@ -750,7 +750,7 @@ static int spawn_children(orte_sstore_base_global_snapshot_info_t *snapshot, pid
}
opal_output_verbose(10, orte_restart_globals.output,
"orte_restart: Restarted Child with PID = %d\n", child_pid);
"orte_restart: Restarted Child with PID = %d\n", *child_pid);
cleanup:
if( NULL != argv)