hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 05d3254fd3ed24a85d79b6749fcfc45e6327bc23 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 4 Dec 2019 19:06:54 -0800
Subject: [PATCH] Delete compiler options not available in release versions of
 clang _yet_
 
Upstream-Status: Inappropriate [ clang/master already supports them ]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 build/config/compiler/BUILD.gn | 5 +++++
 1 file changed, 5 insertions(+)
 
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index e1f4b3cef6be3..794bad82720c0 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1609,6 +1609,11 @@ config("default_warnings") {
         cflags += [
           "-Wenum-compare-conditional",
 
+          # Disable unknown warnings, since system clang may not have
+          # backported newer warning yet unlike internal clang that
+          # chromium uses.
+          "-Wno-unknown-warning-option",
+
           # An ABI compat warning we don't care about, https://crbug.com/1102157
           # TODO(thakis): Push this to the (few) targets that need it,
           # instead of having a global flag.