Skip to content

Commit a920721

Browse files
danbevrvagg
authored andcommitted
test: silence compiler warning in openssl-binding
Currently, this test generated the following compiler warning: ../binding.cc:33:30: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations] const SSL_METHOD* method = TLSv1_2_server_method(); ^ /node/deps/openssl/openssl/include/openssl/ssl.h:1877:1: note: 'TLSv1_2_server_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) ^ 1 warning generated. This commit adds -Wno-deprecated-declarations to silence this warning for this test. PR-URL: #26067 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 497d9d8 commit a920721

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/addons/openssl-binding/binding.gyp

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
'sources': ['binding.cc'],
99
'include_dirs': ['../../../deps/openssl/openssl/include'],
1010
}],
11+
['OS=="mac"', {
12+
'xcode_settings': {
13+
'OTHER_CFLAGS+': [
14+
'-Wno-deprecated-declarations',
15+
],
16+
},
17+
}, {
18+
'cflags': ['-Wno-deprecated-declarations'],
19+
}],
1120
],
1221
},
1322
]

0 commit comments

Comments
 (0)