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
This commit is contained in:
David Duarte 2024-04-10 23:15:08 +00:00
parent 48d11dde95
commit eefabc8a67

View file

@ -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