fix missing else in patch that added support for unused const local variables
This commit is contained in:
parent
50f78ce329
commit
2f4aee2923
|
@ -1892,7 +1892,7 @@ void CheckOther::functionVariableUsage()
|
|||
|
||||
// standard const type declaration
|
||||
// const int i = x;
|
||||
if (Token::Match(tok, "[;{}] const %type% %var% ="))
|
||||
else if (Token::Match(tok, "[;{}] const %type% %var% ="))
|
||||
{
|
||||
tok = tok->next()->next();
|
||||
|
||||
|
|
Loading…
Reference in New Issue