aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/zlib.gyp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-05-23 14:02:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-23 14:02:54 -0700
commit3d5942e8a4fe8845c49a7afaf8248c4e9b5b7520 (patch)
tree2586e89a54c5b01da16495d6ac5c364e50ed5149 /gyp/zlib.gyp
parentc75d6a8e43891eb197c369b508862bf990957aee (diff)
gyp: clean up warnings with clang-3.8
Diffstat (limited to 'gyp/zlib.gyp')
-rw-r--r--gyp/zlib.gyp10
1 files changed, 8 insertions, 2 deletions
diff --git a/gyp/zlib.gyp b/gyp/zlib.gyp
index 43cf6abfd2..6263c6697b 100644
--- a/gyp/zlib.gyp
+++ b/gyp/zlib.gyp
@@ -19,8 +19,14 @@
},
}, {
'type': 'static_library',
- 'cflags': [ '-Wno-unused-value' ],
- 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wno-unused-value', ], },
+ 'variables': {
+ 'skia_zlib_flags' : [
+ '-Wno-unused-value',
+ '-Wno-shift-negative-value',
+ ],
+ },
+ 'cflags': [ '<@(skia_zlib_flags)' ],
+ 'xcode_settings': { 'WARNING_CFLAGS': [ '<@(skia_zlib_flags)' ], },
'sources': [
'../third_party/externals/zlib/adler32.c',
'../third_party/externals/zlib/compress.c',