Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc for parser/html (exists from gcc 7) r?hsivonen draft
authorSylvestre Ledru <sledru@mozilla.com>
Sun, 06 Aug 2017 18:40:55 +0200
changeset 649494 88e6580da251c2c9374ae8050a1ebcb1f65294c7
parent 649493 ce412362265bced356e509e1c28059b3d6d9f688
child 727088 1c3b15e2b39ef6e2b625ea5901854357fd0e3062
push id75042
push userbmo:sledru@mozilla.com
push dateSat, 19 Aug 2017 19:56:47 +0000
reviewershsivonen
bugs1387569
milestone57.0a1
Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc for parser/html (exists from gcc 7) r?hsivonen MozReview-Commit-ID: HTFgDFeG3xJ
parser/html/moz.build
--- a/parser/html/moz.build
+++ b/parser/html/moz.build
@@ -93,12 +93,11 @@ UNIFIED_SOURCES += [
 FINAL_LIBRARY = 'xul'
 
 # DEFINES['ENABLE_VOID_MENUITEM'] = True
 
 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']