Skip to content

Commit 99ae7e5

Browse files
committed
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.
1 parent 87da53c commit 99ae7e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/zlib/zlib.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'.',
5252
],
5353
},
54+
'cflags': [ '-Wno-implicit-fallthrough' ],
5455
'conditions': [
5556
['OS!="win"', {
5657
'cflags!': [ '-ansi' ],

0 commit comments

Comments
 (0)