Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid warnings (as errors) spots (init vars, etc.) #2022

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/mca/ess/base/ess_base_std_prted.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ int prte_ess_base_prted_setup(void)
char log_file[PATH_MAX];
char *error = NULL;
char *uri = NULL;
char *tmp;
prte_job_t *jdata;
char *tmp = NULL;
prte_job_t *jdata = NULL;
prte_proc_t *proc;
prte_app_context_t *app;
prte_app_context_t *app = NULL;
hwloc_obj_t obj;
unsigned i, j;
prte_topology_t *t;
prte_ess_base_signal_t *sig;
prte_topology_t *t = NULL;
prte_ess_base_signal_t *sig = NULL;
int idx;
pmix_value_t val;

Expand Down
3 changes: 2 additions & 1 deletion src/mca/odls/base/odls_base_default_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,8 @@ void prte_odls_base_spawn_proc(int fd, short sd, void *cbdata)
prte_job_t *jobdat = cd->jdata;
prte_app_context_t *app = cd->app;
prte_proc_t *child = cd->child;
int rc, i;
int rc = PRTE_SUCCESS;
int i;
bool found;
prte_proc_state_t state;
pmix_proc_t pproc;
Expand Down
4 changes: 2 additions & 2 deletions src/mca/plm/base/plm_base_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ static int term_orteds(void)
static void launch_daemons(int fd, short args, void *cbdata)
{
prte_state_caddy_t *state = (prte_state_caddy_t *) cbdata;
prte_job_t *daemons;
prte_job_t *daemons = NULL;
int rc;
prte_job_map_t *map = NULL;
prte_node_t *node;
prte_node_t *node = NULL;
PRTE_HIDE_UNUSED_PARAMS(fd, args);

/* setup the virtual machine */
Expand Down
2 changes: 1 addition & 1 deletion src/mca/rmaps/base/rmaps_base_binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static int bind_generic(prte_job_t *jdata, prte_proc_t *proc,
prte_node_t *node, hwloc_obj_t obj,
prte_rmaps_options_t *options)
{
hwloc_obj_t trg_obj, tmp_obj;
hwloc_obj_t trg_obj = NULL, tmp_obj = NULL;
unsigned ncpus;
hwloc_obj_type_t type;
hwloc_obj_t target;
Expand Down
6 changes: 3 additions & 3 deletions src/mca/schizo/prte/schizo_prte.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,10 @@ static int convert_deprecated_cli(pmix_cli_result_t *results,
static int parse_cli(char **argv, pmix_cli_result_t *results,
bool silent)
{
char *shorts, *helpfile;
struct option *myoptions;
char *shorts = NULL, *helpfile = NULL;
struct option *myoptions = NULL;
int rc, n;
pmix_cli_item_t *opt;
pmix_cli_item_t *opt = NULL;

if (0 == strcmp(prte_tool_actual, "prte")) {
myoptions = prteoptions;
Expand Down
4 changes: 2 additions & 2 deletions src/prted/pmix/pmix_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,15 +1808,15 @@ static void pmix_server_sched(int status, pmix_proc_t *sender,
pmix_data_buffer_t *buffer,
prte_rml_tag_t tg, void *cbdata)
{
pmix_status_t rc;
pmix_status_t rc = PMIX_SUCCESS;
uint8_t cmd;
int32_t cnt;
size_t ninfo;
pmix_alloc_directive_t allocdir;
uint32_t sessionID;
pmix_info_t *info = NULL;
pmix_proc_t source;
pmix_server_req_t *req;
pmix_server_req_t *req = NULL;
int refid;
PRTE_HIDE_UNUSED_PARAMS(status, tg, cbdata);

Expand Down
6 changes: 3 additions & 3 deletions src/prted/pmix/pmix_server_allocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ static void pass_request(int sd, short args, void *cbdata)
{
pmix_server_req_t *req = (pmix_server_req_t*)cbdata;
pmix_status_t rc;
size_t n;
pmix_info_t *xfer;
PRTE_HIDE_UNUSED_PARAMS(sd, args);
size_t n = 0;
pmix_info_t *xfer = NULL;
PRTE_HIDE_UNUSED_PARAMS(sd, args, n, xfer);

/* add this request to our local request tracker array */
req->local_index = pmix_pointer_array_add(&prte_pmix_server_globals.local_reqs, req);
Expand Down
4 changes: 2 additions & 2 deletions src/tools/prte_info/param.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,12 @@ void prte_info_show_path(const char *type, const char *value)
free(path);
}

void prte_info_do_arch()
void prte_info_do_arch(void)
{
prte_info_out("Configured architecture", "config:arch", PRTE_ARCH);
}

void prte_info_do_hostname()
void prte_info_do_hostname(void)
{
prte_info_out("Configure host", "config:host", PRTE_CONFIGURE_HOST);
}
Expand Down
Loading