Skip to content

Commit 8521600

Browse files
zcbenzrichardlau
authored andcommitted
tools: fix missing [[fallthrough]] in js2c
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>
1 parent 8208e99 commit 8521600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/js2c.cc

+1
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ bool Simplify(const std::vector<char>& code,
603603
simplified_count++;
604604
break;
605605
}
606+
[[fallthrough]];
606607
}
607608
default: {
608609
simplified->push_back(code[i]);

0 commit comments

Comments
 (0)