Bug 986794 - Suppress clang warnings in third-party code: libopus and libtheora. r=derf

This commit is contained in:
Chris Peterson 2014-03-22 00:03:21 -07:00
parent 5da1cb00cf
commit b1f2b0fdbd
2 changed files with 10 additions and 2 deletions

View File

@ -67,3 +67,9 @@ else:
'silk/fixed', 'silk/fixed',
] ]
SOURCES += silk_sources_fixed SOURCES += silk_sources_fixed
# Suppress warnings in third-party code.
if CONFIG['GNU_CC']:
CFLAGS += ['-Wno-declaration-after-statement']
if CONFIG['CLANG_CXX']:
CFLAGS += ['-Wno-\#pragma-messages']

View File

@ -78,5 +78,7 @@ FINAL_LIBRARY = 'gkmedias'
DEFINES['THEORA_DISABLE_ENCODE'] = True DEFINES['THEORA_DISABLE_ENCODE'] = True
# Suppress warnings in third-party code. # Suppress warnings in third-party code.
if CONFIG['CLANG_CXX']: if CONFIG['GNU_CC']:
CFLAGS += ['-Wno-tautological-compare'] CFLAGS += ['-Wno-type-limits']
if CONFIG['CLANG_CXX']:
CFLAGS += ['-Wno-tautological-compare']