# HG changeset patch # User Sam Lantinga # Date 1186876901 0 # Node ID bb67fd5ccfdb6318c56975589ef641250cac4470 # Parent b252359547ed9bb1d982483f8f974478082c9bbe Fixed compile warnings with Visual C++ diff -r b252359547ed -r bb67fd5ccfdb src/SDL_compat.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) { diff -r b252359547ed -r bb67fd5ccfdb src/video/dummy/SDL_nullrender.c --- 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" diff -r b252359547ed -r bb67fd5ccfdb test/testgl2.c --- 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 */