From cf6bb6c8fe30f8a945cf62768dfecf5828cde1c8 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Thu, 22 Feb 2018 15:36:24 -0500 Subject: [PATCH] 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 Commit-Queue: Mike Klein --- gn/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 693c39a..aa7f320 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -372,7 +372,6 @@ config("warnings") { cflags += [ "-Wno-covered-switch-default", "-Wno-deprecated", - "-Wno-implicit-fallthrough", "-Wno-missing-noreturn", "-Wno-old-style-cast", "-Wno-padded", @@ -388,6 +387,9 @@ config("warnings") { ] } } + if (!is_win || is_clang) { + cflags += [ "-Wno-implicit-fallthrough" ] + } } config("warnings_except_public_headers") { if (!is_win) { -- 2.7.4