From 3bb7b8e11e34ec8a0de43e6c6fac2ec38b6ee738 Mon Sep 17 00:00:00 2001 From: trav90 Date: Sun, 4 Mar 2018 15:27:53 -0600 Subject: 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(-) (limited to 'parser/html') diff --git a/parser/html/moz.build b/parser/html/moz.build index 2b351f084..4a2da8a79 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'] -- cgit v1.2.3