diff options
author | kjellander <kjellander@webrtc.org> | 2015-12-16 14:05:29 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-16 22:05:36 +0000 |
commit | 7cae30cbe1200854bbe26205ab53d0f418c8d443 (patch) | |
tree | 7534623814054be7d6b03123d50d59c42188bfc9 /webrtc/base | |
parent | 9f58795cec513b01788ee7c22198d84f361dc349 (diff) | |
download | webrtc-7cae30cbe1200854bbe26205ab53d0f418c8d443.tar.gz |
Disable warnings failing when using Clang on Windows.
This makes it possible to build WebRTC using Clang on Windows.
Depends on https://codereview.webrtc.org/1524703006/
BUG=webrtc:5360, webrtc:5366
NOTRY=True
Review URL: https://codereview.webrtc.org/1522223002
Cr-Commit-Position: refs/heads/master@{#11058}
Diffstat (limited to 'webrtc/base')
-rw-r--r-- | webrtc/base/base.gyp | 11 | ||||
-rw-r--r-- | webrtc/base/base_tests.gyp | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/webrtc/base/base.gyp b/webrtc/base/base.gyp index cc7d0c3213..37421f7bae 100644 --- a/webrtc/base/base.gyp +++ b/webrtc/base/base.gyp @@ -541,6 +541,17 @@ 'WEBRTC_EXTERNAL_JSON', ], }], + ['OS=="win" and clang==1', { + 'msvs_settings': { + 'VCCLCompilerTool': { + 'AdditionalOptions': [ + # Disable warnings failing when compiling with Clang on Windows. + # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 + '-Wno-missing-braces', + ], + }, + }, + }], ], }], ['OS == "android"', { diff --git a/webrtc/base/base_tests.gyp b/webrtc/base/base_tests.gyp index b813197422..5d73d50756 100644 --- a/webrtc/base/base_tests.gyp +++ b/webrtc/base/base_tests.gyp @@ -134,6 +134,18 @@ 'win32windowpicker_unittest.cc', ], }], + ['OS=="win" and clang==1', { + 'msvs_settings': { + 'VCCLCompilerTool': { + 'AdditionalOptions': [ + # Disable warnings failing when compiling with Clang on Windows. + # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 + '-Wno-missing-braces', + '-Wno-unused-const-variable', + ], + }, + }, + }], ['OS=="mac"', { 'sources': [ 'macutils_unittest.cc', |