changeset 4384:a1d27234018f

avoids warnings
author pl
date Sun, 27 Jan 2002 17:21:20 +0000
parents 8a0d7bd2d193
children 7bb8f7905000
files cfgparser.c loader/registry.c loader/win32.c nuppelvideo.c vobsub.h
diffstat 5 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Sun Jan 27 17:16:10 2002 +0000
+++ b/cfgparser.c	Sun Jan 27 17:21:20 2002 +0000
@@ -59,6 +59,7 @@
   case CONF_TYPE_SUBCONFIG :
     return;
   default :
+    ;
   }
 
   mp_msg(MSGT_CFGPARSER, MSGL_DBG2,"Saving option %s\n",opt);
--- a/loader/registry.c	Sun Jan 27 17:16:10 2002 +0000
+++ b/loader/registry.c	Sun Jan 27 17:21:20 2002 +0000
@@ -18,11 +18,12 @@
 //#undef TRACE
 //#define TRACE printf
 
-// ...can be set before init_registry() call
-char* regpathname = 0;
+extern char *get_path ( char * );
 
+// ...can be set before init_registry() call
+char* regpathname = NULL;
 
-static char* localregpathname = 0;
+static char* localregpathname = NULL;
 
 typedef struct reg_handle_s
 {
--- a/loader/win32.c	Sun Jan 27 17:16:10 2002 +0000
+++ b/loader/win32.c	Sun Jan 27 17:21:20 2002 +0000
@@ -407,6 +407,7 @@
 	break;
     default:
 	//memset(memory, 0xcc, header->size);
+	;
     }
 
     header->deadbeef = 0;
--- a/nuppelvideo.c	Sun Jan 27 17:16:10 2002 +0000
+++ b/nuppelvideo.c	Sun Jan 27 17:21:20 2002 +0000
@@ -77,7 +77,7 @@
 		    if ( lzo_init() != LZO_E_OK ) 
 			{
 			fprintf ( stderr, "%s\n", "lzo_init() failed !!!" );
-			return NULL;
+			return;
 		    }
 		    is_lzo_inited = 1;
 		}
--- a/vobsub.h	Sun Jan 27 17:16:10 2002 +0000
+++ b/vobsub.h	Sun Jan 27 17:21:20 2002 +0000
@@ -6,4 +6,4 @@
 extern void vobsub_reset(void *vob);
 extern void vobsub_draw(void *vob, int dxs, int dys, void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
 
-#endif MPLAYER_VOBSUB_H
+#endif /* MPLAYER_VOBSUB_H */