Bug 1073003 - Fix -Wattribute and -Wmultichar warnings in select directories by disabling them. r=ehsan,ted

--HG--
extra : rebase_source : daf7c38dee86adf07c6d87632a18af60e0eb4f0d
This commit is contained in:
Botond Ballo 2014-12-23 03:22:50 -05:00
Родитель fda172c7fb
Коммит cb88585788
3 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -24,6 +24,13 @@ SOURCES += [
include('/ipc/chromium/chromium-config.mozbuild')
# Suppress some GCC/clang warnings being treated as errors:
# - about multi-character constants which are used in codec-related code
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
CXXFLAGS += [
'-Wno-error=multichar'
]
CXXFLAGS += [
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
'frameworks/base/include',

Просмотреть файл

@ -79,6 +79,16 @@ if CONFIG['ANDROID_VERSION'] >= '18':
include('/ipc/chromium/chromium-config.mozbuild')
# Suppress some GCC/clang warnings being treated as errors:
# - about attributes on forward declarations for types that are already
# defined, which complains about an important MOZ_EXPORT for android::AString
# - about multi-character constants which are used in codec-related code
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
CXXFLAGS += [
'-Wno-error=attributes',
'-Wno-error=multichar'
]
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/dom/base',

Просмотреть файл

@ -60,6 +60,15 @@ EXPORTS.mozilla += [
include('/ipc/chromium/chromium-config.mozbuild')
# Suppress some GCC/clang warnings being treated as errors:
# - about attributes on forward declarations for types that are already
# defined, which complains about important MOZ_EXPORT attributes for
# android API types
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
CXXFLAGS += [
'-Wno-error=attributes'
]
FINAL_LIBRARY = 'xul'
if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES['NOMINMAX'] = True