Fix unreadVariable warning

This commit is contained in:
Konstantinos Margaritis
2024-05-15 17:05:50 +03:00
parent 36118e9de3
commit 4bb3f4445f
14 changed files with 30 additions and 27 deletions

View File

@@ -800,7 +800,7 @@ bytecode_ptr<NFA> sheng64Compile(raw_dfa &raw, const CompileContext &cc,
old_states = info.states;
auto nfa = shengCompile_int<sheng64>(raw, cc, accel_states, strat, info);
if (!nfa) {
info.states = old_states;
info.states = old_states; // cppcheck-suppress unreadVariable
}
return nfa;
}