Skip to content

Commit

Permalink
Bug 980211 - Suppress clang warnings in third-party media code: speex…
Browse files Browse the repository at this point in the history
…, theora, and vpx. r=derf
  • Loading branch information
cpeterso committed Mar 6, 2014
1 parent 1e64bd6 commit 3dc89c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions media/libspeex_resampler/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']
4 changes: 4 additions & 0 deletions media/libtheora/lib/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']
2 changes: 2 additions & 0 deletions media/libvpx/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3dc89c4

Please sign in to comment.