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:
parent
51ad9ab6ac
commit
86358694fb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue