summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortrav90 <travawine@openmailbox.org>2018-03-04 15:26:51 -0600
committertrav90 <travawine@openmailbox.org>2018-03-04 15:26:51 -0600
commitdaab331cf5cfda7bdfa523c1816ba818d260b4b2 (patch)
tree8489629692b9b74342a950915b6a874484a4552a /security
parent704ce7d91c6cbad84cf2213f5ee55f9ccba28647 (diff)
downloaduxp-daab331cf5cfda7bdfa523c1816ba818d260b4b2.tar.gz
Disable -Wimplicit-fallthrough for a chromium file
GCC 7 supports the clang option -Wimplicit-fallthrough.
Diffstat (limited to 'security')
-rw-r--r--security/sandbox/linux/moz.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build
index bde75cdb70..4273da9558 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']: