Uninitvar: Added comment to clarify that the old logic for function calls has been removed because it had FP and the 'same' checking in the new checker will be used to catch these errors instead.

This commit is contained in:
Daniel Marjamäki 2013-10-26 18:46:06 +02:00
parent 51ad9ab6ac
commit 86358694fb
1 changed files with 3 additions and 0 deletions

View File

@ -479,6 +479,9 @@ private:
if (tok.varId()) {
// array variable passed as function parameter..
if (Token::Match(tok.previous(), "[(,] %var% [+-,)]")) {
// #4896 : This checking was removed because of FP,
// the new uninitvar checking is used instead to catch
// these errors.
ExecutionPath::bailOutVar(checks, tok.varId());
return &tok;
}