Merge "Globally force -Wdeprecated-declarations to be a warning."

This commit is contained in:
Krzysztof Kosiński 2022-08-09 00:45:26 +00:00 committed by Gerrit Code Review
commit 0b4bd22b6f

View file

@ -59,6 +59,10 @@ var (
"-Werror=string-plus-int",
"-Werror=unreachable-code-loop-increment",
// Force deprecation warnings to be warnings for code that compiles with -Werror.
// Making deprecated usages an error causes extreme pain when trying to deprecate anything.
"-Wno-error=deprecated-declarations",
"-D__compiler_offsetof=__builtin_offsetof",
// Emit address-significance table which allows linker to perform safe ICF. Clang does
@ -286,8 +290,7 @@ var (
"-Wno-deprecated-non-prototype",
}
llvmNextExtraCommonGlobalCflags = []string{
}
llvmNextExtraCommonGlobalCflags = []string{}
IllegalFlags = []string{
"-w",