Bug 980211 - Suppress clang warnings in third-party media code: speex, theora, and vpx. r=derf

This commit is contained in:
Chris Peterson 2014-03-05 21:38:52 -08:00
parent cfcf79d707
commit 810529ce40
3 changed files with 10 additions and 0 deletions

View File

@ -39,5 +39,9 @@ else:
if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['OS_TARGET'] != 'Android':
DEFINES['_USE_SSE'] = True
DEFINES['_USE_SSE2'] = True
# Suppress warnings in third-party code.
if CONFIG['OS_TARGET'] == 'Darwin':
CFLAGS += ['-Wno-sign-compare']
if CONFIG['GNU_CC']:
SOURCES['resample.c'].flags += ['-msse2']

View File

@ -76,3 +76,7 @@ FINAL_LIBRARY = 'gkmedias'
# The encoder is currently not included.
DEFINES['THEORA_DISABLE_ENCODE'] = True
# Suppress warnings in third-party code.
if CONFIG['OS_TARGET'] == 'Darwin':
CFLAGS += ['-Wno-tautological-compare']

View File

@ -87,6 +87,8 @@ if CONFIG['OS_TARGET'] == 'Android':
SOURCES += [
'%s/sources/android/cpufeatures/cpu-features.c' % CONFIG['ANDROID_NDK'],
]
elif CONFIG['OS_TARGET'] == 'Darwin':
CFLAGS += ['-Wno-sign-compare']
if not CONFIG['_MSC_VER']:
for f in SOURCES: