Skip to content

Commit d27e811

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

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)