From c50a397a87f79f076a778b3228957d7063eb444e Mon Sep 17 00:00:00 2001 From: gberkes Date: Wed, 7 Aug 2024 21:05:47 +0200 Subject: [PATCH] Suppress cppcheck false positive unassignedVariable warning. --- src/rule_with_operator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rule_with_operator.cc b/src/rule_with_operator.cc index 0eb5ea30..d63129da 100644 --- a/src/rule_with_operator.cc +++ b/src/rule_with_operator.cc @@ -153,7 +153,7 @@ void RuleWithOperator::getVariablesExceptions(Transaction *t, } } - for (const auto &[id, v] : t->m_rules->m_exceptions.m_variable_update_target_by_id) { + for (const auto &[id, v] : t->m_rules->m_exceptions.m_variable_update_target_by_id) { // cppcheck-suppress unassignedVariable if (m_ruleId == id) { if (Variable *b{v.get()};dynamic_cast(b)) { exclusion->push_back(dynamic_cast(b)->m_base.get());