Revert "Move -Wno-enum-compare{,-switch} to external cflags"

This reverts commit 96d221f914.

Reason for revert: build breakage for sdk target

Change-Id: I933df62738c08b48d8ae4ea951b2cb4837616c78
This commit is contained in:
Yi Kong 2018-06-12 04:51:49 +00:00
parent 96d221f914
commit 2f71a6adcd
1 changed files with 7 additions and 4 deletions

View File

@ -173,16 +173,19 @@ func init() {
// this new warning are fixed.
"-Wno-null-pointer-arithmetic",
// http://b/72330874 Disable -Wenum-compare until the instances detected by this new
// warning are fixed.
"-Wno-enum-compare",
"-Wno-enum-compare-switch",
// Disable c++98-specific warning since Android is not concerned with C++98
// compatibility.
"-Wno-c++98-compat-extra-semi",
}, " "))
// Extra cflags for projects under external/ directory to disable warnings that are infeasible
// to fix in all the external projects and their upstream repos.
// Extra cflags for projects under external/ directory
pctx.StaticVariable("ClangExtraExternalCflags", strings.Join([]string{
"-Wno-enum-compare",
"-Wno-enum-compare-switch",
// TODO(yikong): Move -Wno flags here
}, " "))
}