From e9fdfc6cd0348b2b56afc5799ad29c2aa1a02ab0 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 30 Aug 2014 11:18:31 +0200 Subject: [PATCH] Fix on checking side for #6099 --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 79abbd177..2919eb875 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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) {