Skip to content

Commit c1f76a5

Browse files
committed
Update binding.gyp
Warnings muted on Snap7 build. -Wstringop-truncation -Wunused-but-set-variable -Wmisleading-indentation -Wmaybe-uninitialized -Warray-bounds -Wsign-compare -Wstringop-overread
1 parent 631045c commit c1f76a5

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

binding.gyp

+19-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@
1111
"<!@(node -p \"require('node-addon-api').include\")"
1212
],
1313
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")", "snap7"],
14-
"cflags!": [ "-fno-exceptions" ],
14+
"cflags": [
15+
"-Wno-stringop-truncation",
16+
"-Wno-unused-but-set-variable",
17+
"-Wno-misleading-indentation",
18+
"-Wno-maybe-uninitialized",
19+
"-Wno-array-bounds",
20+
"-Wno-sign-compare",
21+
"-Wno-stringop-overread"
22+
],
23+
"cflags!": [ "-fno-exceptions"],
1524
"cflags_cc!": [ "-fno-exceptions" ],
1625
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS"],
1726
"conditions": [
@@ -43,6 +52,15 @@
4352
"./deps/snap7/src/core",
4453
"./deps/snap7/src/lib"
4554
],
55+
"cflags": [
56+
"-Wno-stringop-truncation",
57+
"-Wno-unused-but-set-variable",
58+
"-Wno-misleading-indentation",
59+
"-Wno-maybe-uninitialized",
60+
"-Wno-array-bounds",
61+
"-Wno-sign-compare",
62+
"-Wno-stringop-overread"
63+
],
4664
"cflags!": [ "-fno-exceptions" ],
4765
"cflags_cc!": ["-fno-exceptions"],
4866
"conditions": [

0 commit comments

Comments
 (0)