Bug 1371536 - Suppress more MSVC warnings in media/libspeex_resampler. r?padenot
MozReview-Commit-ID: DVUorkhSBTW
--- a/media/libspeex_resampler/src/moz.build
+++ b/media/libspeex_resampler/src/moz.build
@@ -44,8 +44,14 @@ if CONFIG['CPU_ARCH'] == 'arm' and CONFI
SOURCES += [
'resample_neon.c'
]
SOURCES['resample_neon.c'].flags += CONFIG['NEON_FLAGS']
# Suppress warnings in third-party code.
if CONFIG['GNU_CC']:
CFLAGS += ['-Wno-sign-compare']
+
+if CONFIG['_MSC_VER'] and not CONFIG['CLANG_CL']:
+ CFLAGS += [
+ '-wd4018', # '<' : signed/unsigned mismatch
+ '-wd4101', # unreferenced local variable
+ ]