Bug 986794 - Suppress clang warnings in third-party code: libopus and libtheora. r=derf
authorChris Peterson <cpeterson@mozilla.com>
Sat, 22 Mar 2014 00:03:21 -0700
changeset 194330 fabc466d8703e563a0044661b23c67c9f6ad6103
parent 194329 7d5848e153010a645c109343cf57cd118c4e078b
child 194331 c4c3f686b72873c4a2b915963510fb8d2a945077
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersderf
bugs986794
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 986794 - Suppress clang warnings in third-party code: libopus and libtheora. r=derf
media/libopus/moz.build
media/libtheora/lib/moz.build
--- a/media/libopus/moz.build
+++ b/media/libopus/moz.build
@@ -62,8 +62,14 @@ if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
     ]
     SOURCES += silk_sources_float
     SOURCES += opus_sources_float
 else:
     LOCAL_INCLUDES += [
         'silk/fixed',
     ]
     SOURCES += silk_sources_fixed
+
+# Suppress warnings in third-party code.
+if CONFIG['GNU_CC']:
+    CFLAGS += ['-Wno-declaration-after-statement']
+    if CONFIG['CLANG_CXX']:
+        CFLAGS += ['-Wno-\#pragma-messages']
--- a/media/libtheora/lib/moz.build
+++ b/media/libtheora/lib/moz.build
@@ -73,10 +73,12 @@ if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
     NO_VISIBILITY_FLAGS = True
 
 FINAL_LIBRARY = 'gkmedias'
 
 # The encoder is currently not included.
 DEFINES['THEORA_DISABLE_ENCODE'] = True
 
 # Suppress warnings in third-party code.
-if CONFIG['CLANG_CXX']:
-    CFLAGS += ['-Wno-tautological-compare']
+if CONFIG['GNU_CC']:
+    CFLAGS += ['-Wno-type-limits']
+    if CONFIG['CLANG_CXX']:
+        CFLAGS += ['-Wno-tautological-compare']