From 8ba5b59356d506d3b9e976e7422e69bbd5bec8d6 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 26 Feb 2016 12:33:18 -0800 Subject: Silence shift-negative-value warnings only on POSIX/Clang. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1740103002 . --- third_party/third_party.gyp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'third_party/third_party.gyp') diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp index 0208fa14e3..6746230f1d 100644 --- a/third_party/third_party.gyp +++ b/third_party/third_party.gyp @@ -230,14 +230,12 @@ 'libjpeg/jversion.h', 'libjpeg/transupp.h', ], - 'cflags': [ - '-Wno-shift-negative-value', - ], 'conditions': [ ['os_posix==1', { 'cflags': [ '-Wno-main', '-Wno-missing-braces', + '-Wno-shift-negative-value', '-Wno-unused', ], }], @@ -316,9 +314,13 @@ 'zlib_v128/uncompr.c', 'zlib_v128/zutil.c', ], - 'cflags': [ - # TODO(dsinclair): Remove if fixed upstream. https://crbug.com/507712 - '-Wno-shift-negative-value', + 'conditions': [ + ['os_posix==1', { + 'cflags': [ + # TODO(dsinclair): Remove if fixed upstream. https://crbug.com/507712 + '-Wno-shift-negative-value', + ], + }], ], }, -- cgit v1.2.3