From b608eb865e9fa0c9e3e78f1ff036341622ee7819 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Wed, 28 Oct 2015 10:59:34 -0700 Subject: [PATCH] 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} --- third_party/gflags/gflags.gyp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/third_party/gflags/gflags.gyp b/third_party/gflags/gflags.gyp index 60e136a5d9..76d2448b7e 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': {