GN: Exclude suppressions of Chromium Clang warnings for Chromium builds.

These suppressions are causing GN errors when Chromium targets are depending
directly on WebRTC targets (needed for https://codereview.chromium.org/2413103004)

BUG=webrtc:4256
NOTRY=True

Review-Url: https://codereview.webrtc.org/2408133008
Cr-Commit-Position: refs/heads/master@{#14644}
This commit is contained in:
kjellander
2016-10-16 23:56:12 -07:00
committed by Commit bot
parent 671534e76d
commit e40a7ee007
36 changed files with 193 additions and 274 deletions

View File

@ -884,8 +884,8 @@ rtc_source_set("neteq_test_minimal") {
"neteq/tools/neteq_test.h",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
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" ]
}
}
@ -952,9 +952,8 @@ if (rtc_include_tests) {
"test/insert_packet_with_timing.cc",
]
if (is_clang) {
# Suppress warnings from Chrome's Clang plugins.
# 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" ]
}
@ -989,8 +988,8 @@ if (rtc_include_tests) {
"neteq/audio_decoder_unittest.cc",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
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" ]
}
@ -1036,9 +1035,8 @@ if (rtc_include_tests) {
"neteq/tools/rtc_event_log_source.h",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins
# (bugs.webrtc.org/163).
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" ]
}
@ -1058,9 +1056,8 @@ if (rtc_include_tests) {
"neteq/tools/neteq_rtpplay.cc",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins
# (bugs.webrtc.org/163).
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" ]
}
@ -1092,9 +1089,8 @@ if (rtc_include_tests) {
"codecs/tools/audio_codec_speed_test.h",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins
# (bugs.webrtc.org/163).
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" ]
}
@ -1122,8 +1118,8 @@ if (rtc_include_tests) {
"neteq/tools/neteq_performance_test.h",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
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" ]
}
@ -1142,8 +1138,8 @@ if (rtc_include_tests) {
"neteq/tools/neteq_quality_test.h",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
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" ]
}
@ -1194,8 +1190,8 @@ if (rtc_include_tests) {
public_configs = [ ":neteq_unittest_tools_config" ]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
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" ]
}
@ -1367,9 +1363,8 @@ if (rtc_include_tests) {
"//third_party/gflags:gflags",
]
if (is_clang) {
# Suppress warnings from Chrome's Clang plugins.
# 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" ]
}
}
@ -1618,9 +1613,8 @@ if (rtc_include_tests) {
"//testing/gtest",
]
if (is_clang) {
# Suppress warnings from Chrome's Clang plugins.
# 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" ]
}
}