Bug 1215899 - Suppress clang and gcc warnings in gfx/skia. r=gw280

This commit is contained in:
Chris Peterson 2015-10-16 22:24:19 -07:00
parent d74fd54356
commit 419277fbe5
2 changed files with 16 additions and 6 deletions

View File

@ -139,18 +139,23 @@ DEFINES['GR_IMPLEMENTATION'] = 1
if CONFIG['GNU_CXX']:
CXXFLAGS += [
'-Wno-overloaded-virtual',
'-Wno-unused-function',
'-Wno-deprecated-declarations',
'-Wno-overloaded-virtual',
'-Wno-sign-compare',
'-Wno-unused-function',
]
if CONFIG['CLANG_CXX']:
CXXFLAGS += [
'-Wno-implicit-fallthrough',
'-Wno-inconsistent-missing-override',
'-Wno-macro-redefined',
'-Wno-unused-private-field',
]
else:
CXXFLAGS += ['-Wno-logical-op']
CXXFLAGS += [
'-Wno-logical-op',
'-Wno-maybe-uninitialized',
]
if CONFIG['CPU_ARCH'] == 'arm':
SOURCES['skia/src/opts/SkBlitRow_opts_arm.cpp'].flags += ['-fomit-frame-pointer']

View File

@ -667,18 +667,23 @@ DEFINES['GR_IMPLEMENTATION'] = 1
if CONFIG['GNU_CXX']:
CXXFLAGS += [
'-Wno-overloaded-virtual',
'-Wno-unused-function',
'-Wno-deprecated-declarations',
'-Wno-overloaded-virtual',
'-Wno-sign-compare',
'-Wno-unused-function',
]
if CONFIG['CLANG_CXX']:
CXXFLAGS += [
'-Wno-implicit-fallthrough',
'-Wno-inconsistent-missing-override',
'-Wno-macro-redefined',
'-Wno-unused-private-field',
]
else:
CXXFLAGS += ['-Wno-logical-op']
CXXFLAGS += [
'-Wno-logical-op',
'-Wno-maybe-uninitialized',
]
if CONFIG['CPU_ARCH'] == 'arm':
SOURCES['skia/src/opts/SkBlitRow_opts_arm.cpp'].flags += ['-fomit-frame-pointer']