summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2024-01-23 15:43:10 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-01-23 15:43:10 +0000
commit45fd5175ffbfd705c30a404d5c403c55fd056710 (patch)
tree3fa10fce1c2fc70acaf0c738d7e650786ac85f15
parentfbe572b06459d7d391a9a9c1dcf9051d531c8118 (diff)
parent2ced4b5c664ad651774eceea1f6f45a3c0d9d70e (diff)
Merge "Greatly reduce build warning spam." into main
-rw-r--r--cc/config/global.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/cc/config/global.go b/cc/config/global.go
index ec6dbcee7..5fed7f189 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -272,7 +272,8 @@ var (
"-Wno-range-loop-construct", // http://b/153747076
"-Wno-zero-as-null-pointer-constant", // http://b/68236239
"-Wno-deprecated-anon-enum-enum-conversion", // http://b/153746485
- "-Wno-pessimizing-move", // http://b/154270751
+ "-Wno-deprecated-enum-enum-conversion",
+ "-Wno-pessimizing-move", // http://b/154270751
// New warnings to be fixed after clang-r399163
"-Wno-non-c-typedef-for-linkage", // http://b/161304145
// New warnings to be fixed after clang-r428724
@@ -286,6 +287,13 @@ var (
// New warnings to be fixed after clang-r475365
"-Wno-error=single-bit-bitfield-constant-conversion", // http://b/243965903
"-Wno-error=enum-constexpr-conversion", // http://b/243964282
+
+ // Irrelevant on Android because _we_ don't use exceptions, but causes
+ // lots of build noise because libcxx/libcxxabi do. This can probably
+ // go away when we're on a new enough libc++, but has to be global
+ // until then because it causes warnings in the _callers_, not the
+ // project itself.
+ "-Wno-deprecated-dynamic-exception-spec",
}
noOverride64GlobalCflags = []string{}
@@ -320,6 +328,9 @@ var (
// http://b/239661264
"-Wno-deprecated-non-prototype",
+
+ "-Wno-unused",
+ "-Wno-deprecated",
}
// Similar to noOverrideGlobalCflags, but applies only to third-party code