summaryrefslogtreecommitdiff
path: root/js/src/moz.build
diff options
context:
space:
mode:
authortrav90 <travawine@openmailbox.org>2018-03-04 15:09:21 -0600
committertrav90 <travawine@openmailbox.org>2018-03-04 15:09:21 -0600
commitb9bb9f4cc643bf2285ee8396cb82bcc86ddfa693 (patch)
treed2f7ebbaae5bf4397afac770b519807f698a80dc /js/src/moz.build
parentd219b672a30830953d6b26399e395f75f23cd33e (diff)
downloaduxp-b9bb9f4cc643bf2285ee8396cb82bcc86ddfa693.tar.gz
Disable -Wimplicit-fallthrough when building jsdtoa.cpp
GCC 7 supports the clang option -Wimplicit-fallthrough.
Diffstat (limited to 'js/src/moz.build')
-rw-r--r--js/src/moz.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/moz.build b/js/src/moz.build
index 0a4abd80f3..77acb10b9c 100644
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -790,5 +790,5 @@ if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing']
# Suppress warnings in third-party code.
-if CONFIG['CLANG_CXX']:
+if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough']