Fixed compile warnings with Visual C++
authorSam Lantinga <slouken@libsdl.org>
Sun, 12 Aug 2007 00:01:41 +0000
changeset 2228 bb67fd5ccfdb
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
--- a/src/SDL_compat.c	Sat Aug 11 23:26:03 2007 +0000
+++ b/src/SDL_compat.c	Sun Aug 12 00:01:41 2007 +0000
@@ -704,7 +704,6 @@
             SDL_DirtyTexture(SDL_VideoTexture, numrects, rects);
         } else {
             /* The surface memory needs to be copied to texture */
-            void *pixels;
             int pitch = screen->pitch;
             int psize = screen->format->BytesPerPixel;
             for (i = 0; i < numrects; ++i) {
--- a/src/video/dummy/SDL_nullrender.c	Sat Aug 11 23:26:03 2007 +0000
+++ b/src/video/dummy/SDL_nullrender.c	Sun Aug 12 00:01:41 2007 +0000
@@ -24,6 +24,7 @@
 #include "SDL_video.h"
 #include "../SDL_sysvideo.h"
 #include "../SDL_yuv_sw_c.h"
+#include "../SDL_renderer_sw.h"
 #include "../SDL_rendercopy.h"
 
 
--- a/test/testgl2.c	Sat Aug 11 23:26:03 2007 +0000
+++ b/test/testgl2.c	Sun Aug 12 00:01:41 2007 +0000
@@ -300,6 +300,7 @@
                ((double) frames * 1000) / (now - then));
     }
     quit(0);
+	return 0;
 }
 
 #else /* HAVE_OPENGL */