From c47b15515737e9e66f53d0078a071bdddc0af8a9 Mon Sep 17 00:00:00 2001 From: trav90 Date: Sun, 4 Mar 2018 15:27:53 -0600 Subject: [PATCH] Disable -Wimplicit-fallthrough in parser/html GCC 7 supports the clang option -Wimplicit-fallthrough. --- parser/html/moz.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/parser/html/moz.build b/parser/html/moz.build index 2b351f0843..4a2da8a790 100644 --- a/parser/html/moz.build +++ b/parser/html/moz.build @@ -98,7 +98,6 @@ LOCAL_INCLUDES += [ '/dom/base', ] -if CONFIG['GNU_CXX']: - CXXFLAGS += ['-Wno-error=shadow'] - if CONFIG['CLANG_CXX']: - CXXFLAGS += ['-Wno-implicit-fallthrough'] +if CONFIG['GNU_CXX'] or CONFIG['CLANG_CXX']: + CXXFLAGS += ['-Wno-error=shadow', + '-Wno-implicit-fallthrough']