From 267609878c7f7472990ee5b480a9ab1c54dad8b2 Mon Sep 17 00:00:00 2001 From: Khem Raj 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 Signed-off-by: Randy MacLeod --- 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