From ec450d911367f765c267de4de32915dceff4cc2b Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 2 Aug 2022 12:03:50 -0700 Subject: [PATCH] Prepare to build clang-r468909 * Allow/show clang deprecated* and array-parameter warnings to pass build.py with r468909. Test: presubmit Bug: 241941550 Bug: 241601211 Change-Id: I46bc1138861371ece24e88fad2d64fdf38ca605d --- cc/config/global.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cc/config/global.go b/cc/config/global.go index 357ea4437..f920471f2 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -290,7 +290,12 @@ var ( "-Wno-deprecated-non-prototype", } - llvmNextExtraCommonGlobalCflags = []string{} + llvmNextExtraCommonGlobalCflags = []string{ + // New warnings to be fixed after clang-r468909 + "-Wno-error=array-parameter", // http://b/241941550 + "-Wno-error=deprecated-builtins", // http://b/241601211 + "-Wno-error=deprecated", // in external/googletest/googletest + } IllegalFlags = []string{ "-w",