From b9bb9f4cc643bf2285ee8396cb82bcc86ddfa693 Mon Sep 17 00:00:00 2001 From: trav90 Date: Sun, 4 Mar 2018 15:09:21 -0600 Subject: Disable -Wimplicit-fallthrough when building jsdtoa.cpp GCC 7 supports the clang option -Wimplicit-fallthrough. --- js/src/moz.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/moz.build b/js/src/moz.build index 0a4abd80f..77acb10b9 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'] -- cgit v1.2.3