Merge "Add default -Wimplicit-fallthrough." am: 230e4c77a5 am: cfba3658f4

am: 20249a7a1a

Change-Id: I7ba99728d04f6b67d0b635a5173f0422ee94d802
This commit is contained in:
Chih-Hung Hsieh
2018-10-08 18:10:44 -07:00
committed by android-build-merger

View File

@@ -103,6 +103,10 @@ func init() {
pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
"-D__compiler_offsetof=__builtin_offsetof",
// Make implicit fallthrough an error in the future.
"-Wimplicit-fallthrough",
"-Wno-error=implicit-fallthrough",
// Help catch common 32/64-bit errors.
"-Werror=int-conversion",