From a920721175ceb0b17788b548616de86cf7251ba6 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 13 Feb 2019 05:58:36 +0100 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Sakthipriyan Vairamani --- test/addons/openssl-binding/binding.gyp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/addons/openssl-binding/binding.gyp b/test/addons/openssl-binding/binding.gyp index 38a7c10d672d92..3a30a7e86922a4 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'], + }], ], }, ]