mirror of
https://github.com/nodejs/node.git
synced 2025-05-04 09:38:40 +00:00

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: https://github.com/nodejs/node/pull/26067 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
24 lines
532 B
Python
24 lines
532 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'includes': ['../common.gypi'],
|
|
'conditions': [
|
|
['node_use_openssl=="true"', {
|
|
'sources': ['binding.cc'],
|
|
'include_dirs': ['../../../deps/openssl/openssl/include'],
|
|
}],
|
|
['OS=="mac"', {
|
|
'xcode_settings': {
|
|
'OTHER_CFLAGS+': [
|
|
'-Wno-deprecated-declarations',
|
|
],
|
|
},
|
|
}, {
|
|
'cflags': ['-Wno-deprecated-declarations'],
|
|
}],
|
|
],
|
|
},
|
|
]
|
|
}
|