From 3bf2371a5758ac2f775ee0ee66975565d86ea209 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Fri, 13 Jan 2023 01:41:46 +0000 Subject: [PATCH] build: add extra semi check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46194 Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Darshan Sen --- node.gyp | 1 + node.gypi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index 21e3ed50befd58..cec24aed034362 100644 --- a/node.gyp +++ b/node.gyp @@ -98,6 +98,7 @@ '-W', '-Wno-unused-parameter', '-Werror=undefined-inline', + '-Werror=extra-semi', ], }, diff --git a/node.gypi b/node.gypi index ecd2ea6ea87deb..e8dd7fe2be3100 100644 --- a/node.gypi +++ b/node.gypi @@ -27,7 +27,7 @@ 'conditions': [ [ 'clang==1', { - 'cflags': [ '-Werror=undefined-inline', ] + 'cflags': [ '-Werror=undefined-inline', '-Werror=extra-semi'] }], [ '"<(_type)"=="executable"', { 'msvs_settings': {