Really fixed #3941.

This commit is contained in:
PKEuS 2012-07-29 06:50:05 -07:00
parent 26a2379f9f
commit 4e2a86260f
1 changed files with 1 additions and 1 deletions

View File

@ -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);