Skip to content

Commit 95a9c00

Browse files
committed
Fix #14431
1 parent e9e3755 commit 95a9c00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/checkother.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,6 +3794,8 @@ void CheckOther::checkEvaluationOrder()
37943794
continue;
37953795
if (!tok->astOperand1())
37963796
continue;
3797+
if (isDesignatedInitializer(tok->astOperand1()))
3798+
continue;
37973799
for (const Token *tok2 = tok;; tok2 = tok2->astParent()) {
37983800
// If ast parent is a sequence point then break
37993801
const Token * const parent = tok2->astParent();

0 commit comments

Comments
 (0)