Bug 1345186: Suppress -Wunused-function build warnings in third-party libstagefright C code. r=mshal draft
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 07 Mar 2017 15:02:45 -0800
changeset 494813 f5e309f28a9b6358d78668172fcf2d71bd130f17
parent 494722 6351f15cf90b4f2a5d340deca535442e880f3004
child 548214 4dcdab19496bc5d9b14bbb47695f3cfa66644875
push id48149
push userdholbert@mozilla.com
push dateTue, 07 Mar 2017 23:03:09 +0000
reviewersmshal
bugs1345186
milestone55.0a1
Bug 1345186: Suppress -Wunused-function build warnings in third-party libstagefright C code. r=mshal MozReview-Commit-ID: EO0XTMTdyoG
media/libstagefright/moz.build
--- a/media/libstagefright/moz.build
+++ b/media/libstagefright/moz.build
@@ -149,17 +149,18 @@ if CONFIG['_MSC_VER']:
         '-wd4309', # '=' : truncation of constant value
         '-wd4355', # 'this' : used in base member initializer list
         '-wd4804', # '>' : unsafe use of type 'bool' in operation
         '-wd4099', # mismatched class/struct tags
     ]
 elif CONFIG['GNU_CXX']:
     CFLAGS += [
         '-Wno-comment',
-        '-Wno-sign-compare'
+        '-Wno-sign-compare',
+        '-Wno-unused-function',
     ]
     CXXFLAGS += [
         '-Wno-format',
         '-Wno-format-security',
         '-Wno-multichar',
         '-Wno-sign-compare',
         '-Wno-unused',
     ]