Merge "Add default -Wimplicit-fallthrough."
am: 230e4c77a5
Change-Id: I15e7cbf40722360d91cafc196e4a9a908338df56
This commit is contained in:
@@ -103,6 +103,10 @@ func init() {
|
|||||||
pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
|
pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
|
||||||
"-D__compiler_offsetof=__builtin_offsetof",
|
"-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.
|
// Help catch common 32/64-bit errors.
|
||||||
"-Werror=int-conversion",
|
"-Werror=int-conversion",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user