Disable -Wimplicit-fallthrough for a chromium file

GCC 7 supports the clang option -Wimplicit-fallthrough.
This commit is contained in:
trav90
2018-03-04 15:26:51 -06:00
parent 704ce7d91c
commit daab331cf5
+2 -2
View File
@@ -75,8 +75,8 @@ SOURCES += [
# consistent. See also the comment in SandboxLogging.h.
SOURCES['../chromium/base/strings/safe_sprintf.cc'].flags += ['-DNDEBUG']
# Keep clang from warning about intentional 'switch' fallthrough in icu_utf.cc:
if CONFIG['CLANG_CXX']:
# Keep clang and GCC from warning about intentional 'switch' fallthrough in icu_utf.cc:
if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
SOURCES['../chromium/base/third_party/icu/icu_utf.cc'].flags += ['-Wno-implicit-fallthrough']
if CONFIG['GNU_CXX']: