Skip to content

Commit d95d10a

Browse files
Update checkother.cpp
1 parent 08db304 commit d95d10a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2408,7 +2408,7 @@ void CheckOtherImpl::checkIncompleteStatement()
24082408
!(tok->str() == "," && tok->astParent() && tok->astParent()->isAssignmentOp()))
24092409
continue;
24102410
// Skip statement expressions
2411-
if (Token::simpleMatch(rtok, "; } )"))
2411+
if (Token::simpleMatch(rtok, "; } )") || Token::simpleMatch(tok->next(), "; } )"))
24122412
continue;
24132413
if (!isConstStatement(tok, mSettings.library, false))
24142414
continue;

0 commit comments

Comments
 (0)