mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1073081 - Fix -Wmultichar warnings by disabling them. r=ehsan,ted
--HG-- extra : source : be2421d1f5774650bfef732bdf046bf638293a5b
This commit is contained in:
parent
449bab4daf
commit
37fdfeaeec
@ -22,11 +22,15 @@ LOCAL_INCLUDES += [
|
||||
]
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
# Suppress some GCC warnings being treated as errors:
|
||||
# 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
|
||||
if CONFIG['GNU_CC']:
|
||||
CXXFLAGS += ['-Wno-error=attributes']
|
||||
# - 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'
|
||||
|
||||
|
@ -225,6 +225,11 @@ SOURCES += [
|
||||
'DecoderTraits.cpp',
|
||||
]
|
||||
|
||||
# Some codec-related code uses multi-character constants, which GCC and clang
|
||||
# warn about. Suppress turning this warning into an error.
|
||||
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
|
||||
SOURCES['DecoderTraits.cpp'].flags += ['-Wno-error=multichar']
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'PeerConnection.js',
|
||||
'PeerConnection.manifest',
|
||||
|
Loading…
Reference in New Issue
Block a user