Fix on checking side for #6099

This commit is contained in:
PKEuS 2014-08-30 11:18:31 +02:00
parent 3ac5f16668
commit e9fdfc6cd0
1 changed files with 1 additions and 1 deletions

View File

@ -1377,7 +1377,7 @@ void CheckOther::checkVariableScope()
bool reduce = true;
bool used = false; // Don't warn about unused variables
for (; tok != var->scope()->classEnd; tok = tok->next()) {
if (tok->str() == "{" && tok->scope() != tok->previous()->scope()) {
if (tok->str() == "{" && tok->scope() != tok->previous()->scope() && !tok->isExpandedMacro()) {
if (used) {
bool used2 = false;
if (!checkInnerScope(tok, var, used2) || used2) {