From 8b337b67367fc15eb094c85d07126042472254f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1ri=20Tristan=20Helgason?= Date: Fri, 2 Jun 2017 13:47:36 +0200 Subject: [PATCH] Remove outdated warning suppressions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:5478 Change-Id: Ieff41903ec8b4d4b19413d09f9ac1d1afcf1cdc6 Reviewed-on: https://chromium-review.googlesource.com/522645 Reviewed-by: Henrik Andreasson Commit-Queue: Kári Tristan Helgason Cr-Commit-Position: refs/heads/master@{#18471} --- webrtc/media/BUILD.gn | 13 ------------- webrtc/modules/video_capture/BUILD.gn | 9 --------- 2 files changed, 22 deletions(-) diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn index d33b399d7c..fd4bf39127 100644 --- a/webrtc/media/BUILD.gn +++ b/webrtc/media/BUILD.gn @@ -23,15 +23,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_static_library("rtc_media_base") { # TODO(kjellander): Remove (bugs.webrtc.org/6828) # Enabling GN check triggers cyclic dependency error: @@ -77,8 +68,6 @@ rtc_static_library("rtc_media_base") { "base/videosourcebase.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" ] @@ -166,8 +155,6 @@ rtc_static_library("rtc_media") { ] } - 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" ] diff --git a/webrtc/modules/video_capture/BUILD.gn b/webrtc/modules/video_capture/BUILD.gn index c902ee86ff..5865688e20 100644 --- a/webrtc/modules/video_capture/BUILD.gn +++ b/webrtc/modules/video_capture/BUILD.gn @@ -136,15 +136,6 @@ if (!build_with_chromium) { "objc/video_capture.h", "objc/video_capture.mm", ] - - cflags = [ - "-fobjc-arc", # CLANG_ENABLE_OBJC_ARC = YES. - - # To avoid warnings for deprecated videoMinFrameDuration and - # videoMaxFrameDuration properties in iOS 7.0. - # See webrtc:3705 for more details. - "-Wno-deprecated-declarations", - ] } all_dependent_configs = [ ":video_capture_internal_impl_config" ]