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

This commit is contained in:
Chris Peterson 2014-03-15 23:21:32 -07:00
parent 539b553214
commit a79c47b2be
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

@ -87,8 +87,6 @@ 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:
@ -99,3 +97,7 @@ if not CONFIG['_MSC_VER']:
SOURCES[f].flags += ['-mssse3']
if 'avx2' in f:
SOURCES[f].flags += ['-mavx2']
# Suppress warnings in third-party code.
if CONFIG['GNU_CC']:
CFLAGS += ['-Wno-sign-compare']