changeset 2228:bb67fd5ccfdb

Fixed compile warnings with Visual C++
author Sam Lantinga <slouken@libsdl.org>
date Sun, 12 Aug 2007 00:01:41 +0000
parents b252359547ed
children 22342048bcb8
files src/SDL_compat.c src/video/dummy/SDL_nullrender.c test/testgl2.c
diffstat 3 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */