summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-13 05:58:36 +0100
committerAnna Henningsen <anna@addaleax.net>2019-02-16 00:19:10 +0100
commit611043cc66a690a3eb7dd3514e7bd7e82b793d78 (patch)
tree42c7ee965f750f513290dbfa17b2ae482b41b6f2 /test
parent0eb71d42130b4ec72b1c81ec575488c3377c05eb (diff)
downloadandroid-node-v8-611043cc66a690a3eb7dd3514e7bd7e82b793d78.tar.gz
android-node-v8-611043cc66a690a3eb7dd3514e7bd7e82b793d78.tar.bz2
android-node-v8-611043cc66a690a3eb7dd3514e7bd7e82b793d78.zip
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: 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>
Diffstat (limited to 'test')
-rw-r--r--test/addons/openssl-binding/binding.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/addons/openssl-binding/binding.gyp b/test/addons/openssl-binding/binding.gyp
index 38a7c10d67..3a30a7e869 100644
--- a/test/addons/openssl-binding/binding.gyp
+++ b/test/addons/openssl-binding/binding.gyp
@@ -8,6 +8,15 @@
'sources': ['binding.cc'],
'include_dirs': ['../../../deps/openssl/openssl/include'],
}],
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS+': [
+ '-Wno-deprecated-declarations',
+ ],
+ },
+ }, {
+ 'cflags': ['-Wno-deprecated-declarations'],
+ }],
],
},
]