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: Ic2474aa4e09904c046714182bd90409def0e826d
This commit is contained in:
committed by
Chih-hung Hsieh
parent
e729542e89
commit
d6022447f1
@@ -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",
|
||||
|
Reference in New Issue
Block a user