changeset 1110:71b8911ec3da

-Wall like cleanup
author al3x
date Tue, 12 Jun 2001 14:09:25 +0000
parents a013b2124f05
children a3c3e1de6f02
files libvo/vo_sdl.c libvo/vo_x11.c
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Tue Jun 12 14:03:18 2001 +0000
+++ b/libvo/vo_sdl.c	Tue Jun 12 14:09:25 2001 +0000
@@ -595,7 +595,6 @@
 init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
 //static int sdl_setup (int width, int height)
 {
-	int ret;
 	struct sdl_priv_s *priv = &sdl_priv;
         unsigned int sdl_format;
 	SDL_Rect res;
@@ -1052,6 +1051,9 @@
 				case SDLK_SLASH:
 				case SDLK_KP_DIVIDE:
                                 case SDLK_s: mplayer_put_key('/');break;
+				default:
+					mplayer_put_key(keypressed);
+					break;
 				}
 			break;
 			case SDL_KEYUP:
--- a/libvo/vo_x11.c	Tue Jun 12 14:03:18 2001 +0000
+++ b/libvo/vo_x11.c	Tue Jun 12 14:09:25 2001 +0000
@@ -110,14 +110,14 @@
 static uint32_t image_format;
 
 static void check_events(){
-  int e=vo_x11_check_events(mDisplay);
+  vo_x11_check_events(mDisplay);
 }
 
 static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d_height,uint32_t flags,char *title,uint32_t format )
 {
- int screen;
+// int screen;
  int fullscreen=0;
- int interval, prefer_blank, allow_exp, nothing;
+// int interval, prefer_blank, allow_exp, nothing;
  unsigned int fg,bg;
  char *hello=( title == NULL ) ? "X11 render" : title;
 // char *name=":0.0";
@@ -148,7 +148,7 @@
  if (fullscreen) {
     unsigned int modeline_width, modeline_height, vm_event, vm_error;
     unsigned int vm_ver, vm_rev;
-    int i,j,k,have_vm=0,X,Y;
+    int i,j,have_vm=0,X,Y;
 
     int modecount;
 
@@ -419,7 +419,6 @@
 void rgb15to16_mmx( char* s0,char* d0,int count );
 
 static uint32_t draw_frame( uint8_t *src[] ){
-    int i;
     int sbpp=( ( image_format&0xFF )+7 )/8;
     int dbpp=( bpp+7 )/8;
     char *d=ImageData;