From eefabc8a679cdb60e38d5b862b4dda93d29991c4 Mon Sep 17 00:00:00 2001 From: David Duarte Date: Wed, 10 Apr 2024 23:15:08 +0000 Subject: [PATCH] Allow override of -Wno-error=format Move -Wno-error=format from noOverrideGlobalCflags to commonGlobalCflags so that projects can re-enable it with "-Werror=format" Bug: 315250603 Test: Add -Werror=format to bluetooth_cflags Change-Id: I677cee5373c670c1a3b0eceeea1b7c35d28a17c2 --- cc/config/global.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cc/config/global.go b/cc/config/global.go index 08fcb91fa..16b5e0938 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -144,6 +144,9 @@ var ( // Make paths in deps files relative. "-no-canonical-prefixes", + + // http://b/315250603 temporarily disabled + "-Wno-error=format", } commonGlobalConlyflags = []string{} @@ -254,8 +257,6 @@ var ( "-Werror=fortify-source", // http://b/315246135 temporarily disabled "-Wno-unused-variable", - // http://b/315250603 temporarily disabled - "-Wno-error=format", // Disabled because it produces many false positives. http://b/323050926 "-Wno-missing-field-initializers", // http://b/323050889