From 0133a64d2aed45d399be9b0a6b86faa642c91330 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Fri, 7 May 2021 16:23:59 +0200 Subject: [PATCH] Disable range-loop-analysis when use_xcode_clang=true. Bug: None Change-Id: Ifc1c015150a075f3afa55288d3f669fc414ee8c2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/217884 Reviewed-by: Florent Castelli Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#33952} --- BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 75c54b4eed..e60d7dd0bd 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -354,6 +354,13 @@ config("common_config") { # recognize. cflags += [ "-Wunused-lambda-capture" ] } + + if (use_xcode_clang) { + # This may be removed if the clang version in xcode > 12.4 includes the + # fix https://reviews.llvm.org/D73007. + # https://bugs.llvm.org/show_bug.cgi?id=44556 + cflags += [ "-Wno-range-loop-analysis" ] + } } if (is_win && !is_clang) {