From 6fa76ba33a6744b2df89121e660226e1198785f3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 12 Aug 2007 00:01:41 +0000 Subject: [PATCH] Fixed compile warnings with Visual C++ --- src/SDL_compat.c | 1 - src/video/dummy/SDL_nullrender.c | 1 + test/testgl2.c | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SDL_compat.c b/src/SDL_compat.c index 1d85c3d6a..e2a744e16 100644 --- a/src/SDL_compat.c +++ b/src/SDL_compat.c @@ -704,7 +704,6 @@ SDL_UpdateRects(SDL_Surface * screen, int numrects, SDL_Rect * rects) 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) { diff --git a/src/video/dummy/SDL_nullrender.c b/src/video/dummy/SDL_nullrender.c index 67dec6ab2..81219cf8f 100644 --- a/src/video/dummy/SDL_nullrender.c +++ b/src/video/dummy/SDL_nullrender.c @@ -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" diff --git a/test/testgl2.c b/test/testgl2.c index 5d3fff231..a990f6ae8 100644 --- a/test/testgl2.c +++ b/test/testgl2.c @@ -300,6 +300,7 @@ main(int argc, char *argv[]) ((double) frames * 1000) / (now - then)); } quit(0); + return 0; } #else /* HAVE_OPENGL */