Index: third_party/winsdk_samples/BUILD.gn |
diff --git a/third_party/winsdk_samples/BUILD.gn b/third_party/winsdk_samples/BUILD.gn |
index ec2d4591ee5b9f05237bd9e0255165a8f20045b6..82d12332e3f6852021aeff930c342d89d1cff61b 100644 |
--- a/third_party/winsdk_samples/BUILD.gn |
+++ b/third_party/winsdk_samples/BUILD.gn |
@@ -10,9 +10,7 @@ if (is_win) { |
baseclasses_dir = "src/Samples/multimedia/directshow/baseclasses" |
config("winsdk_samples_config") { |
- include_dirs = [ |
- baseclasses_dir, |
- ] |
+ include_dirs = [ baseclasses_dir ] |
} |
static_library("winsdk_samples") { |
@@ -87,5 +85,25 @@ if (is_win) { |
"//build/config/win:nominmax", |
] |
configs += [ "//build/config/compiler:no_chromium_code" ] |
+ if (is_win && is_clang) { |
+ cflags += [ |
+ # Disable warnings failing when compiling with Clang on Windows. |
+ # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
+ "-Wno-comment", |
+ "-Wno-delete-non-virtual-dtor", |
+ "-Wno-ignored-attributes", |
+ "-Wno-logical-op-parentheses", |
+ "-Wno-non-pod-varargs", |
+ "-Wno-microsoft-extra-qualification", |
+ "-Wno-missing-braces", |
+ "-Wno-overloaded-virtual", |
+ "-Wno-parentheses", |
+ "-Wno-reorder", |
+ "-Wno-string-conversion", |
+ "-Wno-tautological-constant-out-of-range-compare", |
+ "-Wno-unused-private-field", |
+ "-Wno-writable-strings", |
+ ] |
+ } |
} |
-} |
+} |