From e7659df12f994545a76628498b8ee0a2d14330b9 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Wed, 16 May 2018 11:50:40 +0200 Subject: [PATCH] Suppressing /wd4702. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:9274 Change-Id: I420a96202d9de323341ef7831bbf90f986958003 Reviewed-on: https://webrtc-review.googlesource.com/77040 Commit-Queue: Mirko Bonadei Reviewed-by: Danil Chapovalov Reviewed-by: Patrik Höglund Cr-Commit-Position: refs/heads/master@{#23261} --- BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 9291b626e2..4cc18252b1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -259,6 +259,13 @@ config("common_config") { cflags += [ "-Wunused-lambda-capture" ] } } + + if (is_win && !is_clang) { + # MSVC warning suppressions (needed to use Abseil). + # TODO(bugs.webrtc.org/9274): Remove these warnings as soon as MSVC allows + # external headers warning suppression (or fix them upstream). + cflags += [ "/wd4702" ] # unreachable code + } } if (current_cpu == "arm64") {