aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-wam/cef/files/chromium/0016-meta-browser-Delete-compiler-options-not-available-i.patch
blob: 0956f5f3cf9f817826e0bb0bfceef0ff2dc67d9e (plain)
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
29
30
31
32
From 267609878c7f7472990ee5b480a9ab1c54dad8b2 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 16/33] [meta-browser] 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>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.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 6d87a2b03fa04..5762f0b4e6b0a 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1725,6 +1725,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",
+
         # Ignore warnings about MSVC optimization pragmas.
         # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
         "-Wno-ignored-pragma-optimize",
-- 
2.42.1