diff options
author | Mike Klein <mtklein@chromium.org> | 2018-02-22 15:36:24 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-22 21:05:45 +0000 |
commit | ee77da2c0bb44b92409d5eaf2b7ae7530f650a24 (patch) | |
tree | 3ffdc9d41b5e217cd7f272172db980020839cb03 | |
parent | 020dbe7917f7616bfbdff9128124e0c09d3f0f2d (diff) |
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>
-rw-r--r-- | gn/BUILD.gn | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 0d23b8a043..c574f928a2 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -363,7 +363,6 @@ config("warnings") { cflags += [ "-Wno-covered-switch-default", "-Wno-deprecated", - "-Wno-implicit-fallthrough", "-Wno-missing-noreturn", "-Wno-old-style-cast", "-Wno-padded", @@ -383,6 +382,9 @@ config("warnings") { "-Wno-objcc-interface-ivars", ] } + if (!is_win || is_clang) { + cflags += [ "-Wno-implicit-fallthrough" ] + } } config("warnings_except_public_headers") { if (!is_win || is_clang) { |