Merge "Add default -Wimplicit-fallthrough."

This commit is contained in:
Treehugger Robot 2018-10-09 00:46:21 +00:00 committed by Gerrit Code Review
commit 230e4c77a5
1 changed files with 4 additions and 0 deletions

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",