summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2021-10-06 09:06:36 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2021-10-11 11:11:54 +0200
commit5d7bd8616e6f50ef9d71585a3d66ecb324d8acaa (patch)
treedaaf9260da228f80c33e8d40bec6e77fd4d9192a /deps
parentfe84cd453d8a28b655c6188251aaaf31e18b15e9 (diff)
downloadnode-new-5d7bd8616e6f50ef9d71585a3d66ecb324d8acaa.tar.gz
deps: suppress zlib compiler warnings
Currently, there are a number of compilation warnings from zlib like the following one: ../deps/zlib/infback.c: In function ‘inflateBack’: ../deps/zlib/infback.c:479:25: warning: this statement may fall through [-Wimplicit-fallthrough=] 479 | state->mode = LEN; | ~~~~~~~~~~~~^~~~~ ../deps/zlib/infback.c:481:9: note: here 481 | case LEN: | ^~~~ In this case there is no break statement and the intention is to fall through: Tracev((stderr, "inflate: codes ok\n")); state->mode = LEN; case LEN: This commit adds -Wno-implicit-fallthrough' to zlib.gyp to suppress these warnings. PR-URL: https://github.com/nodejs/node/pull/40343 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps')
-rw-r--r--deps/zlib/zlib.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/zlib/zlib.gyp b/deps/zlib/zlib.gyp
index bbfb561b89..7cc472d63a 100644
--- a/deps/zlib/zlib.gyp
+++ b/deps/zlib/zlib.gyp
@@ -54,6 +54,7 @@
'conditions': [
['OS!="win"', {
'cflags!': [ '-ansi' ],
+ 'cflags': [ '-Wno-implicit-fallthrough' ],
'defines': [ 'HAVE_HIDDEN' ],
}],
['OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="android"', {