From: Cheng Zhao Date: Tue, 12 Nov 2013 10:16:37 +0000 (+0800) Subject: mac: Get rid of all the third party warnings. X-Git-Tag: v0.7.0~1^2~53 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0ad51c394b3fc789c76350536f5007a7838cf399;p=electron.git mac: Get rid of all the third party warnings. --- 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': [