Bug 786372 - eliminate libtheora -pedantic warning spew; r=derf
authorNathan Froyd <froydnj@mozilla.com>
Tue, 28 Aug 2012 15:25:17 -0400
changeset 105735 089fd92d1553f5b5970c2e388053609a82047d9f
parent 105734 954c8ade179ea3aaffb40c6bc8c552f9b5bf2448
child 105736 ff1f9b1ddc2ac162e2fa266288406c5b1852d468
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersderf
bugs786372
milestone18.0a1
Bug 786372 - eliminate libtheora -pedantic warning spew; r=derf
media/libtheora/lib/Makefile.in
--- a/media/libtheora/lib/Makefile.in
+++ b/media/libtheora/lib/Makefile.in
@@ -3,16 +3,20 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 DEPTH     = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
+ifdef GNU_CC
+OS_CFLAGS := $(filter-out -pedantic,$(OS_CFLAGS))
+endif
+
 MODULE           = theora
 LIBRARY_NAME     = theora
 FORCE_STATIC_LIB = 1
 ifeq (WINNT,$(OS_TARGET))
 VISIBILITY_FLAGS =
 endif
 
 # The encoder is currently not included.