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

Dominik Mierzejewski dominik at rangers.eu.org
Thu Jun 27 23:33:40 CEST 2002


Attached.
I can verify that
typedef unsigned long ulong;
is in <sys/types.h> on Solaris
$ uname -a
SunOS mion 5.7 Generic_106541-19 sun4u sparc SUNW,Ultra-250

So we've got it confirmed for Linux and Solaris. Can anyone verify
it for other OSes?
 
-- 
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-20020626/libmpcodecs/vd_real.c.warn	Mon Jun 24 12:20:27 2002
+++ MPlayer-20020626/libmpcodecs/vd_real.c	Thu Jun 27 22:43:44 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-20020626/libmpcodecs/ad_real.c.warn	Fri Jun 14 03:48:14 2002
+++ MPlayer-20020626/libmpcodecs/ad_real.c	Thu Jun 27 22:43:44 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-20020626/libmpcodecs/vf.c.warn	Sun Jun 23 23:44:09 2002
+++ MPlayer-20020626/libmpcodecs/vf.c	Thu Jun 27 22:43:44 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-20020626/libmpcodecs/vd_svq1.c.warn	Sun Jun 23 13:34:54 2002
+++ MPlayer-20020626/libmpcodecs/vd_svq1.c	Thu Jun 27 22:43:44 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-20020626/libmpcodecs/ve_divx4.c.warn	Sat Apr 27 19:49:11 2002
+++ MPlayer-20020626/libmpcodecs/ve_divx4.c	Thu Jun 27 22:59:16 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-20020626/libmpcodecs/ve_lavc.c.warn	Tue Jun 18 19:40:13 2002
+++ MPlayer-20020626/libmpcodecs/ve_lavc.c	Thu Jun 27 22:59:27 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);
 
 //===========================================================================//
 
--- MPlayer-20020626/libmpcodecs/ve_libdv.c.warn	Sat Apr 13 21:14:31 2002
+++ MPlayer-20020626/libmpcodecs/ve_libdv.c	Thu Jun 27 22:59:56 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-20020626/libmpcodecs/ve_rawrgb.c.warn	Mon Apr 29 13:47:41 2002
+++ MPlayer-20020626/libmpcodecs/ve_rawrgb.c	Thu Jun 27 23:00:10 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-20020626/libmpcodecs/ve_vfw.c.warn	Tue May 28 17:51:22 2002
+++ MPlayer-20020626/libmpcodecs/ve_vfw.c	Thu Jun 27 23:00:26 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-20020626/postproc/rgb2rgb_template.c.warn	Sat Jun 22 15:16:12 2002
+++ MPlayer-20020626/postproc/rgb2rgb_template.c	Thu Jun 27 22:43:44 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-20020626/libavcodec/common.c.warn	Tue Jun 18 19:38:59 2002
+++ MPlayer-20020626/libavcodec/common.c	Thu Jun 27 22:43:44 2002
@@ -18,7 +18,7 @@
  *
  * alternative bitstream reader & writer by Michael Niedermayer <michaelni at gmx.at>
  */
-#include "common.h"
+#include "avcodec.h"
 
 void init_put_bits(PutBitContext *s, 
                    UINT8 *buffer, int buffer_size,


More information about the MPlayer-dev-eng mailing list