From daab331cf5cfda7bdfa523c1816ba818d260b4b2 Mon Sep 17 00:00:00 2001 From: trav90 Date: Sun, 4 Mar 2018 15:26:51 -0600 Subject: Disable -Wimplicit-fallthrough for a chromium file GCC 7 supports the clang option -Wimplicit-fallthrough. --- security/sandbox/linux/moz.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'security') diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build index bde75cdb7..4273da955 100644 --- a/security/sandbox/linux/moz.build +++ b/security/sandbox/linux/moz.build @@ -75,8 +75,8 @@ SOURCES += [ # consistent. See also the comment in SandboxLogging.h. SOURCES['../chromium/base/strings/safe_sprintf.cc'].flags += ['-DNDEBUG'] -# Keep clang from warning about intentional 'switch' fallthrough in icu_utf.cc: -if CONFIG['CLANG_CXX']: +# Keep clang and GCC from warning about intentional 'switch' fallthrough in icu_utf.cc: +if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']: SOURCES['../chromium/base/third_party/icu/icu_utf.cc'].flags += ['-Wno-implicit-fallthrough'] if CONFIG['GNU_CXX']: -- cgit v1.2.3