Bug 1192586 - Suppress warnings in third-party library media/libav. r=qDot
authorChris Peterson <cpeterson@mozilla.com>
Sun, 02 Aug 2015 22:31:00 -0700
changeset 277087 f8990c35f5f8c6898883148dfc49f431d68dc67f
parent 277086 1954d80916b44b372dbbd01a226aa495401ef104
child 277088 062c4849e766cf3db6c5dc0eea8296dc7f7973b8
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-esr52@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqDot
bugs1192586
milestone43.0a1
Bug 1192586 - Suppress warnings in third-party library media/libav. r=qDot
media/libav/libavcommon.mozbuild
--- a/media/libav/libavcommon.mozbuild
+++ b/media/libav/libavcommon.mozbuild
@@ -26,14 +26,27 @@ else:
     # Default to unix, similar to how ASFLAGS setup works in configure.in
     ASFLAGS += ['-Pconfig_unix.asm']
 
 LOCAL_INCLUDES += ['/media/libav']
 
 # Suppress warnings in third-party code.
 if CONFIG['GNU_CC']:
     CFLAGS += [
+        '-Wno-parentheses',
+        '-Wno-pointer-sign',
         '-Wno-sign-compare',
+        '-Wno-switch',
         '-Wno-type-limits',
-        '-Wno-pointer-sign'
+    ]
+    if CONFIG['CLANG_CXX']:
+        CFLAGS += [
+            '-Wno-incompatible-pointer-types-discards-qualifiers',
+            '-Wno-logical-op-parentheses',
+        ]
+elif CONFIG['_MSC_VER']:
+    CFLAGS += [
+        '-wd4090', # 'return' : different 'const' qualifiers
+        '-wd4018', # '>' : signed/unsigned mismatch
+        '-wd4305', # 'initializing' : truncation from '__int64' to 'double'
     ]
 
 FINAL_LIBRARY = 'lgpllibs'