Small refactoring
This commit is contained in:
parent
59c1c76a97
commit
b1ce229006
|
@ -1206,9 +1206,7 @@ void CheckOther::checkVariableScope()
|
|||
continue;
|
||||
}
|
||||
// bailout if initialized with function call that has possible side effects
|
||||
if (tok->str() == "(" && Token::simpleMatch(tok->astOperand2(), "("))
|
||||
continue;
|
||||
if (Token::simpleMatch(tok, "=") && Token::simpleMatch(tok->astOperand2(), "("))
|
||||
if (Token::Match(tok, "[(=]") && Token::simpleMatch(tok->astOperand2(), "("))
|
||||
continue;
|
||||
bool reduce = true;
|
||||
bool used = false; // Don't warn about unused variables
|
||||
|
|
Loading…
Reference in New Issue