Really fixed #3941.
This commit is contained in:
parent
26a2379f9f
commit
4e2a86260f
|
@ -1595,7 +1595,7 @@ void CheckOther::checkVariableScope()
|
|||
tok = tok->tokAt(3);
|
||||
if (!tok->isNumber() && tok->type() != Token::eString && tok->type() != Token::eChar && !tok->isBoolean())
|
||||
continue;
|
||||
} else if ((tok->str() == "=") &&
|
||||
} else if ((tok->str() == "=" || tok->str() == "(") &&
|
||||
((!tok->next()->isNumber() && tok->next()->type() != Token::eString && tok->next()->type() != Token::eChar && !tok->next()->isBoolean()) || tok->strAt(2) != ";"))
|
||||
continue;
|
||||
lookupVar(tok, var);
|
||||
|
|
Loading…
Reference in New Issue