From 03f926ddcad5f31b16f4b27845e8f63e571d8d3f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 25 Feb 2024 17:10:00 +0900 Subject: [PATCH] tools: fix missing [[fallthrough]] in js2c The latest clang warns about this. PR-URL: https://github.com/nodejs/node/pull/51845 Reviewed-By: Chengzhong Wu Reviewed-By: Antoine du Hamel Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Joyee Cheung Reviewed-By: Luigi Pinca --- tools/js2c.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/js2c.cc b/tools/js2c.cc index 1d1ce31d6339e7..0fa9c5954d24a5 100644 --- a/tools/js2c.cc +++ b/tools/js2c.cc @@ -603,6 +603,7 @@ bool Simplify(const std::vector& code, simplified_count++; break; } + [[fallthrough]]; } default: { simplified->push_back(code[i]);