set -Wno-implicit-fallthrough on GCC too
Bug: skia:7643
Change-Id: Ieeca5414f51c7c113c54b47578ec840fc7d684e0
Reviewed-on: https://skia-review.googlesource.com/109520
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 0d23b8a..c574f92 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -363,7 +363,6 @@
cflags += [
"-Wno-covered-switch-default",
"-Wno-deprecated",
- "-Wno-implicit-fallthrough",
"-Wno-missing-noreturn",
"-Wno-old-style-cast",
"-Wno-padded",
@@ -383,6 +382,9 @@
"-Wno-objcc-interface-ivars",
]
}
+ if (!is_win || is_clang) {
+ cflags += [ "-Wno-implicit-fallthrough" ]
+ }
}
config("warnings_except_public_headers") {
if (!is_win || is_clang) {