From 627f487b36ef51bb71e105a903fabfe933b46cef Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 31 Dec 2013 11:40:19 +0000 Subject: [PATCH] Disable compilation errors in node under Linux. --- common.gypi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common.gypi b/common.gypi index 08f80b92ec..fd6b90d345 100644 --- a/common.gypi +++ b/common.gypi @@ -75,6 +75,20 @@ '-Wno-return-type', ], }, + 'conditions': [ + ['OS=="linux"', { + '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 in ["node_lib", "atom_lib"]', { 'include_dirs': [