From 370f621d4d17bdcb8ebc789d6304a98114b58971 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 f1844720762529..f5da2fa3599ed1 100644 --- a/node.gyp +++ b/node.gyp @@ -96,6 +96,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': {