Skip to content

Commit 2ef2300

Browse files
committed
mca_base_var: use correct base flags when creating a syn
Rename to flags_derived, just to be slightly more clear. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 65bb9e6 commit 2ef2300

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opal/mca/base/mca_base_var.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved
13+
* Copyright (c) 2008-2021 Cisco Systems, Inc. All rights reserved
1414
* Copyright (c) 2012-2018 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2014-2020 Intel, Inc. All rights reserved.
@@ -1543,12 +1543,12 @@ int mca_base_var_register(const char *project_name, const char *framework_name,
15431543
}
15441544

15451545
OPAL_LIST_FOREACH_DECL(alias_item, &alias->component_aliases, mca_base_alias_item_t) {
1546-
mca_base_var_syn_flag_t flags_tmp = 0;
1546+
mca_base_var_syn_flag_t flags_derived = flags;
15471547
if (alias_item->alias_flags & MCA_BASE_ALIAS_FLAG_DEPRECATED) {
1548-
flags_tmp = MCA_BASE_VAR_SYN_FLAG_DEPRECATED;
1548+
flags_derived = MCA_BASE_VAR_SYN_FLAG_DEPRECATED;
15491549
}
15501550
(void) mca_base_var_register_synonym(ret, project_name, framework_name,
1551-
alias_item->component_alias, variable_name, flags);
1551+
alias_item->component_alias, variable_name, flags_derived);
15521552
}
15531553

15541554
return ret;

0 commit comments

Comments
 (0)