Fixed compile warnings with Visual C++
authorSam Lantinga <slouken@libsdl.org>
Sun, 12 Aug 2007 00:01:41 +0000
changeset 2228bb67fd5ccfdb
parent 2227 b252359547ed
child 2229 22342048bcb8
Fixed compile warnings with Visual C++
src/SDL_compat.c
src/video/dummy/SDL_nullrender.c
test/testgl2.c
     1.1 --- a/src/SDL_compat.c	Sat Aug 11 23:26:03 2007 +0000
     1.2 +++ b/src/SDL_compat.c	Sun Aug 12 00:01:41 2007 +0000
     1.3 @@ -704,7 +704,6 @@
     1.4              SDL_DirtyTexture(SDL_VideoTexture, numrects, rects);
     1.5          } else {
     1.6              /* The surface memory needs to be copied to texture */
     1.7 -            void *pixels;
     1.8              int pitch = screen->pitch;
     1.9              int psize = screen->format->BytesPerPixel;
    1.10              for (i = 0; i < numrects; ++i) {
     2.1 --- a/src/video/dummy/SDL_nullrender.c	Sat Aug 11 23:26:03 2007 +0000
     2.2 +++ b/src/video/dummy/SDL_nullrender.c	Sun Aug 12 00:01:41 2007 +0000
     2.3 @@ -24,6 +24,7 @@
     2.4  #include "SDL_video.h"
     2.5  #include "../SDL_sysvideo.h"
     2.6  #include "../SDL_yuv_sw_c.h"
     2.7 +#include "../SDL_renderer_sw.h"
     2.8  #include "../SDL_rendercopy.h"
     2.9  
    2.10  
     3.1 --- a/test/testgl2.c	Sat Aug 11 23:26:03 2007 +0000
     3.2 +++ b/test/testgl2.c	Sun Aug 12 00:01:41 2007 +0000
     3.3 @@ -300,6 +300,7 @@
     3.4                 ((double) frames * 1000) / (now - then));
     3.5      }
     3.6      quit(0);
     3.7 +	return 0;
     3.8  }
     3.9  
    3.10  #else /* HAVE_OPENGL */