[MPlayer-dev-eng] (yet) another batch of compiler warning fixes

Dominik Mierzejewski dominik at rangers.eu.org
Thu Jul 11 11:47:56 CEST 2002


On Thursday, 11 July 2002, Dominik Mierzejewski wrote:
> Of course. As I wrote some time earlier, I could verify this only on Linux
> and Solaris. I'll fix these hunks and repost.

Here goes.  
 
-- 
MPlayer RPMs: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
Dominik 'Rathann' Mierzejewski <rathann(at)rangers.eu.org>
-------------- next part --------------
--- MPlayer-20020711/libmpcodecs/vd_real.c.warn	Mon Jun 24 12:20:27 2002
+++ MPlayer-20020711/libmpcodecs/vd_real.c	Thu Jul 11 11:45:28 2002
@@ -10,6 +10,10 @@
 #include "help_mp.h"
 
 #include "vd_internal.h"
+#ifdef USE_WIN32DLL
+#include "../loader/ldt_keeper.h"
+#include "../loader/wine/winbase.h"
+#endif
 
 static vd_info_t info = {
 	"RealVideo decoder",
@@ -22,8 +26,9 @@
 
 LIBVD_EXTERN(real)
 
-
+#if defined(__CYGWIN__)
 typedef unsigned long ulong;
+#endif
 
 ulong (*rvyuv_custom_message)(ulong,ulong);
 ulong (*rvyuv_free)(ulong);
--- MPlayer-20020711/libmpcodecs/ad_real.c.warn	Fri Jun 14 03:48:14 2002
+++ MPlayer-20020711/libmpcodecs/ad_real.c	Thu Jul 11 11:45:04 2002
@@ -23,7 +23,9 @@
 
 LIBAD_EXTERN(real)
 
+#if defined(__CYGWIN__)
 typedef unsigned long ulong;
+#endif
 
 static void *handle=NULL;
 
--- MPlayer-20020711/libmpcodecs/vf.c.warn	Sun Jun 23 23:44:09 2002
+++ MPlayer-20020711/libmpcodecs/vf.c	Thu Jul 11 11:43:48 2002
@@ -2,11 +2,11 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "../config.h"
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
 
-#include "../config.h"
 #include "../mp_msg.h"
 
 #include "img_format.h"
--- MPlayer-20020711/libmpcodecs/vd_svq1.c.warn	Sun Jun 23 13:34:54 2002
+++ MPlayer-20020711/libmpcodecs/vd_svq1.c	Thu Jul 11 11:43:48 2002
@@ -5,6 +5,9 @@
 #include "mp_msg.h"
 
 #include "vd_internal.h"
+#ifdef USE_LIBAVCODEC
+#include "../libavcodec/avcodec.h"
+#endif
 
 static vd_info_t info = {
 	"SVQ1 (Sorenson v1) Video decoder",
--- MPlayer-20020711/libmpcodecs/ve_divx4.c.warn	Sat Apr 27 19:49:11 2002
+++ MPlayer-20020711/libmpcodecs/ve_divx4.c	Thu Jul 11 11:43:48 2002
@@ -24,6 +24,7 @@
 
 extern int pass;
 extern char* passtmpfile;
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
 
 #include <encore2.h>
 
--- MPlayer-20020711/libmpcodecs/ve_lavc.c.warn	Tue Jul  9 14:22:20 2002
+++ MPlayer-20020711/libmpcodecs/ve_lavc.c	Thu Jul 11 11:43:48 2002
@@ -26,6 +26,7 @@
 #endif
 
 extern int pass;
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
 
 //===========================================================================//
 
--- MPlayer-20020711/libmpcodecs/ve_libdv.c.warn	Sat Apr 13 21:14:31 2002
+++ MPlayer-20020711/libmpcodecs/ve_libdv.c	Thu Jul 11 11:43:48 2002
@@ -23,6 +23,8 @@
 
 #include <libdv/dv.h>
 
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
+
 #ifndef DV_WIDTH
 #define DV_WIDTH       720
 #define DV_PAL_HEIGHT  576
--- MPlayer-20020711/libmpcodecs/ve_rawrgb.c.warn	Mon Apr 29 13:47:41 2002
+++ MPlayer-20020711/libmpcodecs/ve_rawrgb.c	Thu Jul 11 11:43:48 2002
@@ -16,6 +16,8 @@
 #include "mp_image.h"
 #include "vf.h"
 
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
+
 //===========================================================================//
 
 struct vf_priv_s {
--- MPlayer-20020711/libmpcodecs/ve_vfw.c.warn	Tue May 28 17:51:22 2002
+++ MPlayer-20020711/libmpcodecs/ve_vfw.c	Thu Jul 11 11:43:48 2002
@@ -18,6 +18,8 @@
 #include "mp_image.h"
 #include "vf.h"
 
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
+
 //===========================================================================//
 
 #include "dll_init.h"
--- MPlayer-20020711/libmpcodecs/vd_ffmpeg.c.warn	Wed Jul 10 02:33:02 2002
+++ MPlayer-20020711/libmpcodecs/vd_ffmpeg.c	Thu Jul 11 11:43:48 2002
@@ -306,7 +306,7 @@
 #else
     mpi->qstride=MBC+1;
 #endif
-#else ifdef FF_POSTPROCESS
+#else /* ifdef FF_POSTPROCESS */
     mpi->qscale=&quant_store[0][0];
     mpi->qstride=MBC+1;
 #endif
--- MPlayer-20020711/postproc/rgb2rgb_template.c.warn	Mon Jul  1 18:44:11 2002
+++ MPlayer-20020711/postproc/rgb2rgb_template.c	Thu Jul 11 11:43:48 2002
@@ -15,6 +15,8 @@
 #warning You have misconfigured system and probably will lose performance!
 #endif
 
+#include "../libvo/fastmemcpy.h"
+
 #undef PREFETCH
 #undef MOVNTQ
 #undef EMMS
--- MPlayer-20020711/vidix/drivers/mga_vid.c.warn	Fri Jul  5 22:30:32 2002
+++ MPlayer-20020711/vidix/drivers/mga_vid.c	Thu Jul 11 11:43:48 2002
@@ -685,7 +685,7 @@
 
 int vixConfigPlayback(vidix_playback_t *config)
 {
-	int i;
+	unsigned int i;
 	int x, y, sw, sh, dw, dh;
 	int besleft, bestop, ifactor, ofsleft, ofstop, baseadrofs, weight, weights;
 #ifdef CRTC2


More information about the MPlayer-dev-eng mailing list