pass clangcl compile options to ignore warnings in gflags.cc
R=kjellander@webrtc.org, ajm@webrtc.org
BUG=webrtc:760
Review URL: https://codereview.webrtc.org/1426883002 .
Cr-Commit-Position: refs/heads/master@{#10440}
diff --git a/third_party/gflags/gflags.gyp b/third_party/gflags/gflags.gyp
index 60e136a..76d2448 100644
--- a/third_party/gflags/gflags.gyp
+++ b/third_party/gflags/gflags.gyp
@@ -66,6 +66,18 @@
}],
# TODO(andrew): Look into fixing this warning upstream:
# http://code.google.com/p/webrtc/issues/detail?id=760
+ ['OS=="win" and clang==1', {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'AdditionalOptions!': [
+ '-Wheader-hygiene', # Suppress warning about using namespace.
+ ],
+ 'AdditionalOptions': [
+ '-Wno-unused-local-typedef', # Suppress unused private typedef.
+ ],
+ },
+ },
+ }],
['clang==1', {
'cflags!': ['-Wheader-hygiene',],
'xcode_settings': {