commit | 230e4c77a56ac6b46628fbb7a5d2b80c68beeb48 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Oct 09 00:46:21 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Oct 09 00:46:21 2018 +0000 |
tree | 93946e2a4d8c68f6d8ac2523a2a3ebb19b2d8783 | |
parent | b1a5e9cadfdd0765f763883fd7410add24486ef6 [diff] | |
parent | bd783f13c1d7b2a3f556a091cdd7be51c86a08d8 [diff] |
Merge "Add default -Wimplicit-fallthrough."
diff --git a/cc/config/clang.go b/cc/config/clang.go index 5e22d6a..5cf2421 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go
@@ -103,6 +103,10 @@ 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",