Skip to content

Commit

Permalink
Add suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 24, 2023
1 parent 757ea68 commit 0eb992d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkvaarg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void CheckVaarg::va_start_argument()
if (var && var->index() + 2 < function->argCount() && printWarnings) {
auto it = function->argumentList.end();
std::advance(it, -2);
wrongParameterTo_va_start_error(tok, var->name(), it->name());
wrongParameterTo_va_start_error(tok, var->name(), it->name()); // cppcheck-suppress derefInvalidIterator // FP due to isVariableChangedByFunctionCall()
}
tok = tok->linkAt(1);
}
Expand Down

0 comments on commit 0eb992d

Please sign in to comment.