diff options
| -rw-r--r-- | cc/config/global.go | 16 | ||||
| -rw-r--r-- | rust/bindgen.go | 2 |
2 files changed, 15 insertions, 3 deletions
diff --git a/cc/config/global.go b/cc/config/global.go index 5fed7f189..b0f0ed2b1 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -253,6 +253,14 @@ var ( // http://b/161386391 for -Wno-pointer-to-int-cast "-Wno-pointer-to-int-cast", "-Werror=fortify-source", + // http://b/315246135 temporarily disabled + "-Wno-error=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 + "-Wno-packed-non-pod", "-Werror=address-of-temporary", "-Werror=incompatible-function-pointer-types", @@ -331,6 +339,8 @@ var ( "-Wno-unused", "-Wno-deprecated", + "-Wno-tautological-negation-compare", + "-Wno-tautological-undefined-compare", } // Similar to noOverrideGlobalCflags, but applies only to third-party code @@ -356,6 +366,8 @@ var ( "-Wno-unqualified-std-cast-call", "-Wno-array-parameter", "-Wno-gnu-offsetof-extensions", + // TODO: Enable this warning http://b/315245071 + "-Wno-fortify-source", } llvmNextExtraCommonGlobalCflags = []string{ @@ -375,8 +387,8 @@ var ( // prebuilts/clang default settings. ClangDefaultBase = "prebuilts/clang/host" - ClangDefaultVersion = "clang-r498229b" - ClangDefaultShortVersion = "17" + ClangDefaultVersion = "clang-r510928" + ClangDefaultShortVersion = "18" // Directories with warnings from Android.bp files. WarningAllowedProjects = []string{ diff --git a/rust/bindgen.go b/rust/bindgen.go index 77ba2777f..85cc220a4 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -29,7 +29,7 @@ var ( defaultBindgenFlags = []string{""} // bindgen should specify its own Clang revision so updating Clang isn't potentially blocked on bindgen failures. - bindgenClangVersion = "clang-r498229b" + bindgenClangVersion = "clang-r510928" _ = pctx.VariableFunc("bindgenClangVersion", func(ctx android.PackageVarContext) string { if override := ctx.Config().Getenv("LLVM_BINDGEN_PREBUILTS_VERSION"); override != "" { |