Skip to content

Commit

Permalink
remove some unused vars
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Naughton <naughtont@ornl.gov>
  • Loading branch information
naughtont3 authored and rhc54 committed Oct 13, 2022
1 parent af8484a commit 793e3bc
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions src/mca/errmgr/dvm/errmgr_dvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static void proc_errors(int fd, short args, void *cbdata)
prte_state_caddy_t *caddy = (prte_state_caddy_t *) cbdata;
prte_job_t *jdata;
prte_proc_t *pptr, *proct;
pmix_proc_t *proc = &caddy->name, parent;
pmix_proc_t *proc = &caddy->name;
prte_proc_state_t state = caddy->proc_state;
int i;
int32_t i32, *i32ptr;
Expand Down Expand Up @@ -580,7 +580,6 @@ static void check_send_notification(prte_job_t *jdata,
pmix_proc_t target;
pmix_data_buffer_t pbkt;
pmix_data_range_t range = PMIX_RANGE_CUSTOM;
pmix_status_t cret;

pmix_output_verbose(5, prte_state_base_framework.framework_output,
"%s errmgr:dvm:sending notification %s affected proc %s",
Expand Down
1 change: 0 additions & 1 deletion src/mca/ess/base/ess_base_std_prted.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ int prte_ess_base_prted_setup(void)
prte_job_t *jdata;
prte_proc_t *proc;
prte_app_context_t *app;
char *param;
hwloc_obj_t obj;
unsigned i, j;
prte_topology_t *t;
Expand Down
1 change: 1 addition & 0 deletions src/mca/ess/env/ess_env_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ static int rte_init(int argc, char **argv)
{
int ret;
char *error = NULL;
PRTE_HIDE_UNUSED_PARAMS(argc, argv);

/* run the prolog */
if (PRTE_SUCCESS != (ret = prte_ess_base_std_prolog())) {
Expand Down
5 changes: 3 additions & 2 deletions src/mca/ess/hnp/ess_hnp_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ static int rte_init(int argc, char **argv)
prte_node_t *node;
prte_proc_t *proc;
prte_app_context_t *app;
char *coprocessors, **sns;
uint32_t h;
int idx;
prte_topology_t *t;
pmix_value_t pval;
pmix_status_t pret;
PRTE_HIDE_UNUSED_PARAMS(argc);

/* run the prolog */
if (PRTE_SUCCESS != (ret = prte_ess_base_std_prolog())) {
Expand Down Expand Up @@ -536,6 +535,8 @@ static int rte_finalize(void)

static void rte_abort(int status, bool report)
{
PRTE_HIDE_UNUSED_PARAMS(report);

pmix_output(0, "ABORT");
/* do NOT do a normal finalize as this will very likely
* hang the process. We are aborting due to an abnormal condition
Expand Down
3 changes: 2 additions & 1 deletion src/mca/ess/slurm/ess_slurm_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ static int rte_init(int argc, char **argv)
{
int ret;
char *error = NULL;
PRTE_HIDE_UNUSED_PARAMS(argc, argv);

/* run the prolog */
/* run the prolog * /
if (PRTE_SUCCESS != (ret = prte_ess_base_std_prolog())) {
error = "prte_ess_base_std_prolog";
goto error;
Expand Down
1 change: 0 additions & 1 deletion src/mca/odls/base/odls_base_default_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,6 @@ void prte_odls_base_default_wait_local_proc(int fd, short sd, void *cbdata)
prte_proc_state_t state = PRTE_PROC_STATE_WAITPID_FIRED;
prte_proc_t *cptr;
bool flag = false;
bool *fptr = &flag;
PRTE_HIDE_UNUSED_PARAMS(fd, sd);

pmix_output_verbose(5, prte_odls_base_framework.framework_output,
Expand Down
10 changes: 1 addition & 9 deletions src/mca/plm/base/plm_base_launch_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,6 @@ static void job_timeout_cb(int fd, short event, void *cbdata)
void prte_plm_base_setup_job(int fd, short args, void *cbdata)
{
int rc;
int i;
prte_app_context_t *app;
prte_state_caddy_t *caddy = (prte_state_caddy_t *) cbdata;
prte_timer_t *timer = NULL;
int time, *tp;
Expand Down Expand Up @@ -700,11 +698,6 @@ void prte_plm_base_complete_setup(int fd, short args, void *cbdata)
{
prte_job_t *jdata;
prte_state_caddy_t *caddy = (prte_state_caddy_t *) cbdata;
prte_node_t *node;
uint32_t h;
pmix_rank_t *vptr;
int i, rc;
char *serial_number;
PRTE_HIDE_UNUSED_PARAMS(fd, args);

PMIX_ACQUIRE_OBJECT(caddy);
Expand Down Expand Up @@ -1119,11 +1112,10 @@ void prte_plm_base_daemon_topology(int status, pmix_proc_t *sender,
{
hwloc_topology_t topo;
int rc, idx;
char *sig, *coprocessors, **sns;
char *sig;
prte_proc_t *daemon = NULL, *dptr, *dnxt;
prte_topology_t *t, *t2;
int i;
uint32_t h;
prte_job_t *jdata;
uint8_t flag;
pmix_data_buffer_t datbuf, *data;
Expand Down
2 changes: 0 additions & 2 deletions src/mca/rmaps/base/rmaps_base_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,6 @@ int prte_rmaps_base_set_ranking_policy(prte_job_t *jdata, char *spec)
{
prte_ranking_policy_t tmp;
prte_mapping_policy_t mapping;
char **ck, *jobppr;
size_t len;

/* set default */
tmp = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/mca/schizo/base/schizo_base_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int prte_schizo_base_sanity(pmix_cli_result_t *cmd_line)
{
pmix_cli_item_t *opt, *newopt;
int n, rc;
const char *tgt, **dirs;
const char *tgt;
char **vtmp;

char *mappers[] = {
Expand Down
2 changes: 1 addition & 1 deletion src/mca/state/base/state_base_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void prte_state_base_track_procs(int fd, short argc, void *cbdata)
prte_job_t *jdata;
prte_proc_t *pdata;
int i;
pmix_proc_t parent, target;
pmix_proc_t target;
prte_pmix_lock_t lock;
pmix_rank_t threshold;
PRTE_HIDE_UNUSED_PARAMS(fd, argc);
Expand Down

0 comments on commit 793e3bc

Please sign in to comment.