Fix on checking side for #6099
This commit is contained in:
parent
3ac5f16668
commit
e9fdfc6cd0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue