From 20d805e4bcbe03223cdddafe3eba2b80fb37b357 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 27 Feb 2018 21:27:44 +0100 Subject: [PATCH] build: disable openssl build warnings on macos We already disable `-Wmissing-field-initializers` on other Unices but not on MacOS. PR-URL: https://github.com/nodejs/node/pull/19046 Fixes: https://github.com/nodejs/node/issues/18983 Reviewed-By: Colin Ihrig Reviewed-By: Daniel Bevenius Reviewed-By: Evan Lucas Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Minwoo Jung --- deps/openssl/openssl.gyp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/openssl/openssl.gyp b/deps/openssl/openssl.gyp index 88994a12b22097..170e5fb68bb503 100644 --- a/deps/openssl/openssl.gyp +++ b/deps/openssl/openssl.gyp @@ -157,6 +157,9 @@ }, { 'defines': ['<@(openssl_default_defines_not_win)'], 'cflags': ['-Wno-missing-field-initializers'], + 'xcode_settings': { + 'WARNING_CFLAGS': ['-Wno-missing-field-initializers'], + }, 'conditions': [ ['OS=="mac"', { 'defines': ['<@(openssl_default_defines_mac)'],