[MPlayer-dev-eng] [PATCH]Discard -Wdeclaration-after-statement warning

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jan 21 15:10:20 CET 2007


Hi Diego!

Attached is a new try to get rid of:
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid 
for C/ObjC but not for C++

Carl Eugen
-------------- next part --------------
Index: libmpdemux/Makefile
===================================================================
--- libmpdemux/Makefile	(Revision 21983)
+++ libmpdemux/Makefile	(Arbeitskopie)
@@ -74,6 +74,6 @@
 CFLAGS-$(CONFIG_LIBAVCODEC)     += -I../libavcodec
 CFLAGS-$(CONFIG_LIBAVFORMAT)    += -I../libavformat
 
-CXXFLAGS  = $(CFLAGS) -D__STDC_LIMIT_MACROS
+CXXFLAGS  = $(subst -Wdeclaration-after-statement,,$(CFLAGS)) -D__STDC_LIMIT_MACROS
 
 include ../mpcommon.mak


More information about the MPlayer-dev-eng mailing list