From e30826c6e191ebfb157a2850ed838334ca32b880 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 2 Jul 2009 17:48:36 +0000 Subject: [PATCH] Quiet some compiler warnings This commit was SVN r21591. --- ompi/runtime/ompi_mpi_init.c | 1 - orte/mca/rmaps/rank_file/rmaps_rank_file.c | 2 +- orte/util/regex.c | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/runtime/ompi_mpi_init.c b/ompi/runtime/ompi_mpi_init.c index 25abf13eca..02612a2c33 100644 --- a/ompi/runtime/ompi_mpi_init.c +++ b/ompi/runtime/ompi_mpi_init.c @@ -407,7 +407,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided) * paffinity scheme. */ ret = opal_paffinity_base_get(&mask); - proc_bound = false; if (OPAL_SUCCESS == ret) { /* paffinity is supported - check for binding */ OPAL_PAFFINITY_PROCESS_IS_BOUND(mask, &proc_bound); diff --git a/orte/mca/rmaps/rank_file/rmaps_rank_file.c b/orte/mca/rmaps/rank_file/rmaps_rank_file.c index db147658a5..3bb2c2bf68 100644 --- a/orte/mca/rmaps/rank_file/rmaps_rank_file.c +++ b/orte/mca/rmaps/rank_file/rmaps_rank_file.c @@ -417,7 +417,7 @@ static int orte_rmaps_rf_map(orte_job_t *jdata) ('N' == rfmap->node_name[1])))) { relative_index=atoi(strtok(rfmap->node_name,"+n")); - if ( relative_index >= opal_list_get_size (&node_list) || ( 0 > relative_index)){ + if ( relative_index >= (int)opal_list_get_size (&node_list) || ( 0 > relative_index)){ orte_show_help("help-rmaps_rank_file.txt","bad-index", true,rfmap->node_name); ORTE_ERROR_LOG(ORTE_ERR_BAD_PARAM); return ORTE_ERR_BAD_PARAM; diff --git a/orte/util/regex.c b/orte/util/regex.c index ecba0a7543..622dd76b03 100644 --- a/orte/util/regex.c +++ b/orte/util/regex.c @@ -773,6 +773,7 @@ static int parse_node_range(char *orig, char ***names, orte_vpid_t *vpid_start, /* protect input */ base = strdup(orig); + suffix = '\0'; /* default to no procs */ *vpid_start = ORTE_VPID_INVALID; @@ -780,6 +781,7 @@ static int parse_node_range(char *orig, char ***names, orte_vpid_t *vpid_start, /* start by searching for ranges and proc specifications */ len = strlen(base); ptr = NULL; + found_range = false; for (i = 0; i <= len; ++i) { if (base[i] == '[') { /* we found a range. this gets dealt with below */