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: nodejs#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 rdw-msft committed Mar 26, 2024
1 parent 750d566 commit b5fdea9
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 b5fdea9

Please sign in to comment.