Skip to content

Commit e9c8d74

Browse files
committed
Merge pull request open-mpi#1048 from jsquyres/pr/2.0.0/minor-warnings-fixes
v2.0.0: trivial warnings fixes
2 parents 8a2a732 + 88ebfac commit e9c8d74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ompi/info/info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ int ompi_info_set (ompi_info_t *info, const char *key, const char *value)
275275
int ompi_info_set_value_enum (ompi_info_t *info, const char *key, int value,
276276
mca_base_var_enum_t *var_enum)
277277
{
278-
char *string_value;
278+
const char *string_value;
279279
int ret;
280280

281281
ret = var_enum->string_from_value (var_enum, value, &string_value);

orte/mca/rmaps/rank_file/rmaps_rank_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static int orte_rmaps_rf_map(orte_job_t *jdata)
216216
/* all would be oversubscribed, so take the least loaded one */
217217
k = UINT32_MAX;
218218
OPAL_LIST_FOREACH(nd, &node_list, orte_node_t) {
219-
if (nd->num_procs < k) {
219+
if (nd->num_procs < (orte_vpid_t)k) {
220220
k = nd->num_procs;
221221
node = nd;
222222
}

0 commit comments

Comments
 (0)