From f771f8da12578d95b613724861d570850f960b14 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 11 Jan 2020 05:43:40 +0000 Subject: [PATCH 1/2] build: silence c-ares Windows compiler warnings Silence the following compiler warning on Windows: `inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings` --- deps/cares/cares.gyp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deps/cares/cares.gyp b/deps/cares/cares.gyp index be7931f7743db1..0b5cd02c21dde1 100644 --- a/deps/cares/cares.gyp +++ b/deps/cares/cares.gyp @@ -112,7 +112,10 @@ 'defines': [ 'CARES_BUILDING_LIBRARY' ] }], [ 'OS=="win"', { - 'defines': [ 'CARES_PULL_WS2TCPIP_H=1' ], + 'defines': [ + 'CARES_PULL_WS2TCPIP_H=1', + '_WINSOCK_DEPRECATED_NO_WARNINGS', + ], 'include_dirs': [ 'config/win32' ], 'sources': [ 'src/config-win32.h', From 307544c098beb74b607723574339d7ddbb32d5ae Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 11 Jan 2020 05:47:20 +0000 Subject: [PATCH 2/2] build: silence OpenSSL Windows compiler warnings Silence the following compiler warning on Windows: `'function': different 'const' qualifiers` --- deps/openssl/openssl_common.gypi | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/openssl/openssl_common.gypi b/deps/openssl/openssl_common.gypi index 93b87064b3fb3e..d866630f444291 100644 --- a/deps/openssl/openssl_common.gypi +++ b/deps/openssl/openssl_common.gypi @@ -32,6 +32,7 @@ 'cflags': [ '-W3', '-wd4090', '-Gs0', '-GF', '-Gy', '-nologo','/O2', ], + 'msvs_disabled_warnings': [4090], 'link_settings': { 'libraries': [ '-lws2_32.lib',