From 2f088c5caaff09c9486ff565eda408447f238fbf Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 26 Feb 2014 15:43:22 +0800 Subject: [PATCH] linux: Suppress compiler warnings of breakpad. --- common.gypi | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/common.gypi b/common.gypi index a3f5d6132ac6..984c1dd86edc 100644 --- a/common.gypi +++ b/common.gypi @@ -110,13 +110,22 @@ ], }], ['_target_name.startswith("breakpad") or _target_name in ["crash_report_sender", "dump_syms"]', { - 'xcode_settings': { - 'WARNING_CFLAGS': [ - '-Wno-deprecated-declarations', - '-Wno-unused-private-field', - '-Wno-unused-function', - ], - }, + 'conditions': [ + ['OS=="mac"', { + 'xcode_settings': { + 'WARNING_CFLAGS': [ + '-Wno-deprecated-declarations', + '-Wno-unused-private-field', + '-Wno-unused-function', + ], + }, + }], # OS=="mac" + ['OS=="linux"', { + 'cflags': [ + '-Wno-empty-body', + ], + }], # OS=="linux" + ], }], ], 'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.