summaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
authortrav90 <travawine@openmailbox.org>2018-03-04 15:27:53 -0600
committertrav90 <travawine@openmailbox.org>2018-03-04 15:27:53 -0600
commit3bb7b8e11e34ec8a0de43e6c6fac2ec38b6ee738 (patch)
tree0e851648a41e95504dd487771f1bf23811692bc7 /parser
parentdaab331cf5cfda7bdfa523c1816ba818d260b4b2 (diff)
downloaduxp-3bb7b8e11e34ec8a0de43e6c6fac2ec38b6ee738.tar.gz
Disable -Wimplicit-fallthrough in parser/html
GCC 7 supports the clang option -Wimplicit-fallthrough.
Diffstat (limited to 'parser')
-rw-r--r--parser/html/moz.build7
1 files 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']