Try to fix travis hang

This commit is contained in:
Daniel Marjamäki 2016-08-02 19:23:45 +02:00
parent b44f448acc
commit 9f59bd6dae
1 changed files with 2 additions and 1 deletions

View File

@ -1272,7 +1272,8 @@ void CheckUnusedVar::checkStructMemberUsage()
// Bail out if struct is used in sizeof..
for (const Token *tok = scope->classEnd; nullptr != (tok = Token::findsimplematch(tok, "sizeof ("));) {
if (Token::Match(tok->tokAt(2), ("struct| " + scope->className).c_str())) {
tok = tok->tokAt(2);
if (Token::Match(tok, ("struct| " + scope->className).c_str())) {
bailout = true;
break;
}