Removing warning suppression flags from media/BUILD.gn.
Bug: webrtc:9251 Change-Id: I52e1d06311fd973956ca410540ad99f5fb792cda Reviewed-on: https://webrtc-review.googlesource.com/77041 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23260}
This commit is contained in:

committed by
Commit Bot

parent
81ae9c850e
commit
fe826f33f3
@ -26,15 +26,6 @@ config("rtc_media_defines_config") {
|
||||
]
|
||||
}
|
||||
|
||||
config("rtc_media_warnings_config") {
|
||||
# GN orders flags on a target before flags from configs. The default config
|
||||
# adds these flags so to cancel them out they need to come from a config and
|
||||
# cannot be on the target directly.
|
||||
if (!is_win) {
|
||||
cflags = [ "-Wno-deprecated-declarations" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("rtc_h264_profile_id") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
@ -183,8 +174,6 @@ rtc_static_library("rtc_internal_video_codecs") {
|
||||
"engine/webrtcvideoencoderfactory.h",
|
||||
]
|
||||
|
||||
configs += [ ":rtc_media_warnings_config" ]
|
||||
|
||||
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" ]
|
||||
@ -233,8 +222,6 @@ rtc_static_library("rtc_software_fallback_wrappers") {
|
||||
"engine/videoencodersoftwarefallbackwrapper.h",
|
||||
]
|
||||
|
||||
configs += [ ":rtc_media_warnings_config" ]
|
||||
|
||||
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" ]
|
||||
@ -294,8 +281,6 @@ rtc_static_library("rtc_audio_video") {
|
||||
"engine/webrtcvoiceengine.h",
|
||||
]
|
||||
|
||||
configs += [ ":rtc_media_warnings_config" ]
|
||||
|
||||
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" ]
|
||||
@ -387,8 +372,6 @@ rtc_static_library("rtc_data") {
|
||||
]
|
||||
}
|
||||
|
||||
configs += [ ":rtc_media_warnings_config" ]
|
||||
|
||||
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" ]
|
||||
|
Reference in New Issue
Block a user