Ignores warning for SecRandomCopyBytes() using Xcode 8
BUG=webrtc:6396
NOTRY=TRUE
TBR=kjellander
Review-Url: https://codereview.webrtc.org/2356073004
Cr-Commit-Position: refs/heads/master@{#14326}
diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn
index e61f15f..ce99522 100644
--- a/webrtc/examples/BUILD.gn
+++ b/webrtc/examples/BUILD.gn
@@ -324,8 +324,14 @@
"-Wno-unused-variable",
]
- # Enabled for cflags_objc in build/config/compiler/BUILD.gn.
- cflags_objc = [ "-Wno-objc-missing-property-synthesis" ]
+ cflags_objc = [
+ # Enabled for cflags_objc in build/config/compiler/BUILD.gn.
+ "-Wno-objc-missing-property-synthesis",
+
+ # Hide the warning for SecRandomCopyBytes(), until we update to upstream.
+ # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396
+ "-Wno-unused-result",
+ ]
if (is_mac) {
cflags += [ "-Wno-partial-availability" ]
diff --git a/webrtc/webrtc_examples.gyp b/webrtc/webrtc_examples.gyp
index 32e12aa..cea4969 100755
--- a/webrtc/webrtc_examples.gyp
+++ b/webrtc/webrtc_examples.gyp
@@ -371,7 +371,12 @@
'MACOSX_DEPLOYMENT_TARGET' : '10.8',
# SRWebSocket.m uses code with partial availability.
# https://code.google.com/p/webrtc/issues/detail?id=4695
- 'WARNING_CFLAGS!': ['-Wpartial-availability'],
+ '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'],
},
}],
],