diff --git a/BUILD.gn b/BUILD.gn index 31ee99b9d0..92941f0250 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -318,9 +318,15 @@ config("common_config") { defines += [ "WEBRTC_EXCLUDE_AUDIO_PROCESSING_MODULE" ] } - # TODO(webrtc:13219): Fix -Wshadow instances and enable. if (is_clang) { - cflags += [ "-Wno-shadow" ] + cflags += [ + # TODO(webrtc:13219): Fix -Wshadow instances and enable. + "-Wno-shadow", + + # See https://reviews.llvm.org/D56731 for details about this + # warning. + "-Wctad-maybe-unsupported", + ] } if (build_with_chromium) { diff --git a/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc b/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc index 99cfa6f456..0ca75d00fc 100644 --- a/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc +++ b/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc @@ -850,7 +850,8 @@ SharedScreenCastStream::~SharedScreenCastStream() {} rtc::scoped_refptr SharedScreenCastStream::CreateDefault() { // Explicit new, to access non-public constructor. - return rtc::scoped_refptr(new SharedScreenCastStream()); + return rtc::scoped_refptr( + new SharedScreenCastStream()); } bool SharedScreenCastStream::StartScreenCastStream(uint32_t stream_node_id) {