Skip to content

Commit c50a397

Browse files
author
gberkes
committed
Suppress cppcheck false positive unassignedVariable warning.
1 parent 35e825d commit c50a397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rule_with_operator.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void RuleWithOperator::getVariablesExceptions(Transaction *t,
153153
}
154154
}
155155

156-
for (const auto &[id, v] : t->m_rules->m_exceptions.m_variable_update_target_by_id) {
156+
for (const auto &[id, v] : t->m_rules->m_exceptions.m_variable_update_target_by_id) { // cppcheck-suppress unassignedVariable
157157
if (m_ruleId == id) {
158158
if (Variable *b{v.get()};dynamic_cast<variables::VariableModificatorExclusion *>(b)) {
159159
exclusion->push_back(dynamic_cast<variables::VariableModificatorExclusion *>(b)->m_base.get());

0 commit comments

Comments
 (0)