From cc3139cf3953d51096702dac48a768f230ffa295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 18 Mar 2013 19:32:40 +0100 Subject: [PATCH] Tokenizer: Fixed 'variableScope' message. --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index d73af42b7..e05f73e5e 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -4980,7 +4980,6 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar) bool isconst = false; bool isstatic = false; - bool ispointer = false; Token *tok2 = type0; unsigned int typelen = 1; @@ -5084,6 +5083,7 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar) //pattern: "%type% *| ... *| const| %var% ,|=" if (Token::Match(tok2, "%type%") || (tok2 && tok2->previous() && tok2->previous()->str() == ">")) { + bool ispointer = false; Token *varName = tok2; if (!tok2->previous() || tok2->previous()->str() != ">") varName = varName->next();