From 810529ce40b52bd22a93cde1728dc902e787162a Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Wed, 5 Mar 2014 21:38:52 -0800 Subject: [PATCH] Bug 980211 - Suppress clang warnings in third-party media code: speex, theora, and vpx. r=derf --- media/libspeex_resampler/src/moz.build | 4 ++++ media/libtheora/lib/moz.build | 4 ++++ media/libvpx/moz.build | 2 ++ 3 files changed, 10 insertions(+) diff --git a/media/libspeex_resampler/src/moz.build b/media/libspeex_resampler/src/moz.build index d7d0d73b272..631926c36f1 100644 --- a/media/libspeex_resampler/src/moz.build +++ b/media/libspeex_resampler/src/moz.build @@ -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'] diff --git a/media/libtheora/lib/moz.build b/media/libtheora/lib/moz.build index fbf96091609..d46f7b2d6f0 100644 --- a/media/libtheora/lib/moz.build +++ b/media/libtheora/lib/moz.build @@ -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'] diff --git a/media/libvpx/moz.build b/media/libvpx/moz.build index a2fcee782f9..54978241803 100644 --- a/media/libvpx/moz.build +++ b/media/libvpx/moz.build @@ -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: