DO NOT MERGE, Make default -Wimplicit-fallthrough as error.

Other branches might still have this warning for some build targets.

Bug: 112564944
Test: make checkbuild
Change-Id: I3db52b8a60bb28861fc9ba963a7d1cd1fe49e903
This commit is contained in:
Chih-Hung Hsieh
2018-10-16 09:57:08 -07:00
committed by Chih-hung Hsieh
parent b551a7775b
commit 53390f2557

View File

@@ -97,9 +97,8 @@ func init() {
pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
"-D__compiler_offsetof=__builtin_offsetof",
// Make implicit fallthrough an error in the future.
// -Wimplicit fallthrough is not enabled by -Wall.
"-Wimplicit-fallthrough",
"-Wno-error=implicit-fallthrough",
// Help catch common 32/64-bit errors.
"-Werror=int-conversion",