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 <legendecas@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • 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.