Index: webrtc/media/BUILD.gn |
diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn |
index 122c404455a98186cb1d4785766204de58986369..b61de328c35da8b528eb0458ea352b3af53f6da1 100644 |
--- a/webrtc/media/BUILD.gn |
+++ b/webrtc/media/BUILD.gn |
@@ -113,7 +113,7 @@ rtc_static_library("rtc_media") { |
configs += [ ":rtc_media_warnings_config" ] |
- if (is_clang) { |
+ if (!build_with_chromium && is_clang) { |
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
} |
@@ -236,9 +236,8 @@ if (rtc_include_tests) { |
include_dirs += [ "$rtc_libyuv_dir/include" ] |
} |
- if (is_clang) { |
- # Suppress warnings from the Chromium Clang plugin. |
- # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
+ if (!build_with_chromium && is_clang) { |
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
} |
@@ -331,10 +330,11 @@ if (rtc_include_tests) { |
] |
} |
- if (is_clang) { |
- # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
+ if (!build_with_chromium && is_clang) { |
suppressed_configs += [ |
"//build/config/clang:extra_warnings", |
+ |
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
"//build/config/clang:find_bad_constructs", |
] |
} |