Skip to content

Commit 77ad8f0

Browse files
committed
suppress deprecation warnings from nan
* while waiting for nodejs/nan#811
1 parent be2438a commit 77ad8f0

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

binding.gyp

+22-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,19 @@
2929
'VCCLCompilerTool': {
3030
'ExceptionHandling': 1,
3131
'AdditionalOptions': ['/EHsc'], # pre 1.0 node compiler complaining
32-
'DisableSpecificWarnings': ['4506']
32+
'DisableSpecificWarnings': ['4506', '4996']
3333
}
3434
}
35+
}],
36+
['OS!="win"', {
37+
"cflags": [
38+
"-Wno-deprecated-declarations",
39+
],
40+
"xcode_settings": {
41+
"OTHER_CFLAGS": [
42+
"-Wno-deprecated-declarations",
43+
],
44+
},
3545
}]
3646
]
3747
},
@@ -64,9 +74,19 @@
6474
'VCCLCompilerTool': {
6575
'ExceptionHandling': 1,
6676
'AdditionalOptions': ['/EHsc'], # pre 1.0 node compiler complaining
67-
'DisableSpecificWarnings': ['4506']
77+
'DisableSpecificWarnings': ['4506', '4996']
6878
}
6979
}
80+
}],
81+
['OS!="win"', {
82+
"cflags": [
83+
"-Wno-deprecated-declarations",
84+
],
85+
"xcode_settings": {
86+
"OTHER_CFLAGS": [
87+
"-Wno-deprecated-declarations",
88+
],
89+
},
7090
}]
7191
]
7292
},

0 commit comments

Comments
 (0)