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

Dominik Mierzejewski dominik at rangers.eu.org
Wed Jul 10 11:14:40 CEST 2002


They're still not applied, but nobody said they were bad last time
I sent them.
 
-- 
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-20020709/libmpcodecs/vd_real.c.warn	Mon Jun 24 12:20:27 2002
+++ MPlayer-20020709/libmpcodecs/vd_real.c	Wed Jul 10 00:02:34 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",
@@ -23,7 +27,7 @@
 LIBVD_EXTERN(real)
 
 
-typedef unsigned long ulong;
+/* typedef unsigned long ulong; */ /* already defined in <sys/types.h>, which is included by <stdlib.h> */
 
 ulong (*rvyuv_custom_message)(ulong,ulong);
 ulong (*rvyuv_free)(ulong);
--- MPlayer-20020709/libmpcodecs/ad_real.c.warn	Fri Jun 14 03:48:14 2002
+++ MPlayer-20020709/libmpcodecs/ad_real.c	Wed Jul 10 00:02:34 2002
@@ -23,7 +23,7 @@
 
 LIBAD_EXTERN(real)
 
-typedef unsigned long ulong;
+/* typedef unsigned long ulong; */ /* already defined in <sys/types.h>, which is included by <stdlib.h> */
 
 static void *handle=NULL;
 
--- MPlayer-20020709/libmpcodecs/vf.c.warn	Sun Jun 23 23:44:09 2002
+++ MPlayer-20020709/libmpcodecs/vf.c	Wed Jul 10 00:02:34 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-20020709/libmpcodecs/vd_svq1.c.warn	Sun Jun 23 13:34:54 2002
+++ MPlayer-20020709/libmpcodecs/vd_svq1.c	Wed Jul 10 00:02:34 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-20020709/libmpcodecs/ve_divx4.c.warn	Sat Apr 27 19:49:11 2002
+++ MPlayer-20020709/libmpcodecs/ve_divx4.c	Wed Jul 10 00:02:34 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-20020709/libmpcodecs/ve_lavc.c.warn	Tue Jul  9 14:22:20 2002
+++ MPlayer-20020709/libmpcodecs/ve_lavc.c	Wed Jul 10 00:02:34 2002
@@ -26,6 +26,7 @@
 #endif
 
 extern int pass;
+extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags);
 
 //===========================================================================//
 
--- MPlayer-20020709/libmpcodecs/ve_libdv.c.warn	Sat Apr 13 21:14:31 2002
+++ MPlayer-20020709/libmpcodecs/ve_libdv.c	Wed Jul 10 00:02:34 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-20020709/libmpcodecs/ve_rawrgb.c.warn	Mon Apr 29 13:47:41 2002
+++ MPlayer-20020709/libmpcodecs/ve_rawrgb.c	Wed Jul 10 00:02:34 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-20020709/libmpcodecs/ve_vfw.c.warn	Tue May 28 17:51:22 2002
+++ MPlayer-20020709/libmpcodecs/ve_vfw.c	Wed Jul 10 00:02:34 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-20020709/postproc/rgb2rgb_template.c.warn	Mon Jul  1 18:44:11 2002
+++ MPlayer-20020709/postproc/rgb2rgb_template.c	Wed Jul 10 00:02:34 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-20020709/vidix/drivers/mga_vid.c.warn	Fri Jul  5 22:30:32 2002
+++ MPlayer-20020709/vidix/drivers/mga_vid.c	Wed Jul 10 00:02:34 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
-------------- next part --------------
--- MPlayer-20020705/Gui/mplayer/gtk/menu.h.gui	Wed Nov 14 18:48:38 2001
+++ MPlayer-20020705/Gui/mplayer/gtk/menu.h	Fri Jul  5 22:31:47 2002
@@ -10,4 +10,4 @@
 extern GtkWidget * AddSeparator( GtkWidget * Menu );
 extern GtkWidget * create_PopUpMenu( void );
 
-#endif
\ No newline at end of file
+#endif
--- MPlayer-20020705/Gui/mplayer/gtk/opts.h.gui	Wed Nov 14 17:05:33 2001
+++ MPlayer-20020705/Gui/mplayer/gtk/opts.h	Fri Jul  5 22:31:47 2002
@@ -6,4 +6,4 @@
 void HideOptions( void );
 GtkWidget * create_Options( void );
 
-#endif
\ No newline at end of file
+#endif
--- MPlayer-20020705/Gui/mplayer/gtk/eq.h.gui	Wed Jul  3 20:57:52 2002
+++ MPlayer-20020705/Gui/mplayer/gtk/eq.h	Fri Jul  5 23:43:54 2002
@@ -12,4 +12,4 @@
 extern GtkWidget * create_Equalizer( void );
 extern void ShowEqualizer( void );
 
-#endif
\ No newline at end of file
+#endif
--- MPlayer-20020705/Gui/mplayer/play.c.gui	Fri Jun  7 23:01:59 2002
+++ MPlayer-20020705/Gui/mplayer/play.c	Fri Jul  5 22:31:47 2002
@@ -1,6 +1,7 @@
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include <unistd.h>
 #include <signal.h>
--- MPlayer-20020705/Gui/app.c.gui	Tue May 28 17:51:14 2002
+++ MPlayer-20020705/Gui/app.c	Fri Jul  5 22:31:47 2002
@@ -13,6 +13,8 @@
 #include "mplayer/mplayer.h"
 #include "interface.h"
 
+extern char *get_path(char *);
+
 listItems   appMPlayer;
 
 char      * skinDirInHome=NULL;


More information about the MPlayer-dev-eng mailing list