diff options
Diffstat (limited to 'gcc/gcc/elna-tree.cc')
| -rw-r--r-- | gcc/gcc/elna-tree.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc index 690cf41..e762b8e 100644 --- a/gcc/gcc/elna-tree.cc +++ b/gcc/gcc/elna-tree.cc @@ -226,6 +226,7 @@ namespace elna::gcc } TYPE_MIN_VALUE(composite_type_node) = DECL_INITIAL(TREE_VALUE(TYPE_VALUES(composite_type_node))); TYPE_UNSIGNED(composite_type_node) = TYPE_UNSIGNED(base_type); + // NOLINTNEXTLINE(bugprone-signed-bitwise) SET_TYPE_ALIGN(composite_type_node, TYPE_ALIGN(base_type)); TYPE_SIZE(composite_type_node) = NULL_TREE; TYPE_PRECISION(composite_type_node) = TYPE_PRECISION(base_type); @@ -261,7 +262,7 @@ namespace elna::gcc if (std::holds_alternative<boot::integer_literal>(constant_value)) { - auto literal_value = std::get<boot::integer_literal>(constant_value); + const boot::integer_literal literal_value = std::get<boot::integer_literal>(constant_value); if (literal_value.is_signed()) { @@ -282,7 +283,7 @@ namespace elna::gcc } else if (std::holds_alternative<boot::float_literal>(constant_value)) { - auto literal = std::get<boot::float_literal>(constant_value); + const boot::float_literal literal = std::get<boot::float_literal>(constant_value); mpfr_t number; mpfr_init2(number, SIGNIFICAND_BITS); |
