[MPlayer-dev-eng] [PATCH] Remove a warning when compiling demux_rtp*

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 21 18:36:03 CET 2006


Hi!

Attached patch removes the following warning when compiling demux_rtp.cpp and 
demux_rtp_codec.cpp:
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid 
for C/ObjC but not for C++

Greetings, Carl Eugen
-------------- next part --------------
Index: libmpdemux/Makefile
===================================================================
--- libmpdemux/Makefile	(Revision 21144)
+++ libmpdemux/Makefile	(Arbeitskopie)
@@ -119,7 +119,7 @@
 .c.o:
 	$(CC) -c $(CFLAGS) -o $@ $<
 .cpp.o:
-	$(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $<
+	$(CPLUSPLUS) -c `echo $(CPLUSPLUSFLAGS)|sed 's/-Wdeclaration-after-statement//'` -o $@ $<
 
 $(LIBNAME):	$(OBJS)
 	$(AR) r $(LIBNAME) $(OBJS)


More information about the MPlayer-dev-eng mailing list