From 20684110fdbde0818579eea472ee376b31249fde Mon Sep 17 00:00:00 2001 From: "jianjun.zhu" Date: Mon, 26 Sep 2016 02:41:34 -0700 Subject: [PATCH] r14326 added '-Wno-unused-result' to 'WARNING_CFLAGS!' which removes the flag. This change moves it to WARNING_CFLAGS, and makes it work for both iOS and mac. BUG=webrtc:6396 NOTRY=True NOPRESUBMIT=True NOTREECHECKS=True Review-Url: https://codereview.webrtc.org/2369803002 Cr-Commit-Position: refs/heads/master@{#14378} --- webrtc/webrtc_examples.gyp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webrtc/webrtc_examples.gyp b/webrtc/webrtc_examples.gyp index cea4969437..9a03d53465 100755 --- a/webrtc/webrtc_examples.gyp +++ b/webrtc/webrtc_examples.gyp @@ -373,10 +373,7 @@ # https://code.google.com/p/webrtc/issues/detail?id=4695 'WARNING_CFLAGS!': [ '-Wpartial-availability', - # Hide the warning for SecRandomCopyBytes(), till we update - # to upstream. - # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396 - '-Wno-unused-result'], + ], }, }], ], @@ -390,6 +387,10 @@ 'WARNING_CFLAGS': [ '-Wno-deprecated-declarations', '-Wno-nonnull', + # Hide the warning for SecRandomCopyBytes(), till we update + # to upstream. + # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396 + '-Wno-unused-result', ], }, 'link_settings': {