From 0ad51c394b3fc789c76350536f5007a7838cf399 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 12 Nov 2013 18:16:37 +0800 Subject: [PATCH] mac: Get rid of all the third party warnings. --- common.gypi | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index c367ccf6..79028646 100644 --- a/common.gypi +++ b/common.gypi @@ -59,7 +59,17 @@ }, }, 'xcode_settings': { - 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO' + 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', + 'WARNING_CFLAGS': [ + '-Wno-parentheses-equality', + '-Wno-unused-function', + '-Wno-sometimes-uninitialized', + '-Wno-pointer-sign', + '-Wno-string-plus-int', + '-Wno-unused-variable', + '-Wno-deprecated-declarations', + '-Wno-return-type', + ], }, }], ['_target_name=="libuv"', { @@ -72,6 +82,14 @@ }], # OS=="win" ], }], + ['_target_name.startswith("breakpad") or _target_name in ["crash_report_sender"]', { + 'xcode_settings': { + 'WARNING_CFLAGS': [ + '-Wno-deprecated-declarations', + '-Wno-unused-function', + ], + }, + }], ], 'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail. 'msvs_disabled_warnings': [ -- 2.43.0