Bug 1194951 - Suppress warnings in third-party code: pocketsphinx and sphinxbase. r=kdavis
authorChris Peterson <cpeterson@mozilla.com>
Mon, 10 Aug 2015 23:01:25 -0700
changeset 257952 dc0b3938e4643b0589adfce82073a1eeff5e4b2c
parent 257951 85555a82cb1e2261c5803a67f9dc4c0409bf2cd3
child 257953 1563c2cabdc8d1270eec8a60191e1ba016515410
push id63775
push usercpeterson@mozilla.com
push dateSun, 16 Aug 2015 20:14:08 +0000
treeherdermozilla-inbound@dc0b3938e464 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskdavis
bugs1194951
milestone43.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 1194951 - Suppress warnings in third-party code: pocketsphinx and sphinxbase. r=kdavis
media/pocketsphinx/moz.build
media/sphinxbase/moz.build
--- a/media/pocketsphinx/moz.build
+++ b/media/pocketsphinx/moz.build
@@ -41,14 +41,19 @@ SOURCES += [
     'src/s2_semi_mgau.c',
     'src/state_align_search.c',
     'src/tmat.c',
     'src/vector.c',
 ]
 
 # Suppress warnings in third-party code.
 if CONFIG['GNU_CC']:
-    CFLAGS += ['-Wno-sign-compare']
+    CFLAGS += [
+        '-Wno-declaration-after-statement',
+        '-Wno-sign-compare',
+    ]
+    if CONFIG['CLANG_CXX']:
+        CFLAGS += ['-Wno-incompatible-pointer-types-discards-qualifiers']
 
 if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
     NO_VISIBILITY_FLAGS = True,
 
 FINAL_LIBRARY = 'gkmedias'
--- a/media/sphinxbase/moz.build
+++ b/media/sphinxbase/moz.build
@@ -62,17 +62,20 @@ SOURCES += [
     'src/libsphinxbase/util/slamch.c',
     'src/libsphinxbase/util/slapack_lite.c',
     'src/libsphinxbase/util/strfuncs.c',
     'src/libsphinxbase/util/utf8.c',
 ]
 
 # Suppress warnings in third-party code.
 if CONFIG['GNU_CC']:
-    CFLAGS += ['-Wno-sign-compare']
+    CFLAGS += [
+        '-Wno-parentheses',
+        '-Wno-sign-compare',
+    ]
 
 # Add define required of third party code.
 if CONFIG['GNU_CC']:
     DEFINES['HAVE_CONFIG_H'] = True
 
 if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
     NO_VISIBILITY_FLAGS = True,