Skip to content

Commit

Permalink
tools: fix missing [[fallthrough]] in js2c
Browse files Browse the repository at this point in the history
The latest clang warns about this.

PR-URL: #51845
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
zcbenz authored and marco-ippolito committed Feb 27, 2024
1 parent c9ada53 commit 03f926d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/js2c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ bool Simplify(const std::vector<char>& code,
simplified_count++;
break;
}
[[fallthrough]];
}
default: {
simplified->push_back(code[i]);
Expand Down

0 comments on commit 03f926d

Please sign in to comment.