Bug 786372 - eliminate libvpx -pedantic warning spew; r=derf
authorNathan Froyd <froydnj@mozilla.com>
Tue, 28 Aug 2012 14:08:35 -0400
changeset 105726 a151960d655c50d516f9edf1fdef8f158a496126
parent 105725 21e3ad020f992f3ec6b9c5272f9445fb8343125c
child 105727 1ec9c51ac5a1210ce547165d0814a9120f53421a
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersderf
bugs786372
milestone18.0a1
Bug 786372 - eliminate libvpx -pedantic warning spew; r=derf
media/libvpx/Makefile.in
--- a/media/libvpx/Makefile.in
+++ b/media/libvpx/Makefile.in
@@ -5,16 +5,20 @@
 
 DEPTH = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir = @srcdir@
 VPATH = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
+ifdef GNU_CC
+OS_CFLAGS := $(filter-out -pedantic,$(OS_CFLAGS))
+endif
+
 DEFINES += -DHAVE_CONFIG_H=vpx_config.h
 
 MODULE = vpx
 LIBRARY_NAME = vpx
 FORCE_STATIC_LIB= 1
 ifeq (WINNT,$(OS_TARGET))
 VISIBILITY_FLAGS =
 endif