Fixed warnings about unused variables and so forth.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Feb 2011 02:18:41 -0800
changeset 5332 ae8b6fb1feaf
parent 5331 16bc7591f8c8
child 5333 5d3a2cd4e8c9
Fixed warnings about unused variables and so forth.
src/events/SDL_touch.c
src/render/opengles2/SDL_render_gles2.c
src/render/software/SDL_render_sw.c
src/video/SDL_blit_1.c
src/video/uikit/SDL_uikitappdelegate.m
--- a/src/events/SDL_touch.c	Thu Feb 17 02:17:38 2011 -0800
+++ b/src/events/SDL_touch.c	Thu Feb 17 02:18:41 2011 -0800
@@ -401,7 +401,6 @@
     SDL_Finger *finger;
     int posted;
     Sint16 xrel, yrel;
-    float x_max = 0, y_max = 0;
     Uint16 x;
     Uint16 y;
     Uint16 pressure;
--- a/src/render/opengles2/SDL_render_gles2.c	Thu Feb 17 02:17:38 2011 -0800
+++ b/src/render/opengles2/SDL_render_gles2.c	Thu Feb 17 02:18:41 2011 -0800
@@ -161,8 +161,6 @@
 static void
 GLES2_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
 {
-    GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;
-
     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
         /* Rebind the context to the window area */
         SDL_CurrentContext = NULL;
@@ -232,7 +230,6 @@
 static int
 GLES2_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
 {
-    GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;
     GLES2_TextureData *tdata;
     GLenum format;
     GLenum type;
@@ -995,7 +992,6 @@
     GLfloat texCoords[8];
     GLuint locTexture;
     GLuint locModulation;
-    GLuint locColorTable;
 
     GLES2_ActivateRenderer(renderer);
 
--- a/src/render/software/SDL_render_sw.c	Thu Feb 17 02:17:38 2011 -0800
+++ b/src/render/software/SDL_render_sw.c	Thu Feb 17 02:18:41 2011 -0800
@@ -511,7 +511,6 @@
 static void
 SW_RenderPresent(SDL_Renderer * renderer)
 {
-    SW_RenderData *data = (SW_RenderData *) renderer->driverdata;
     SDL_Window *window = renderer->window;
 
     if (window) {
--- a/src/video/SDL_blit_1.c	Thu Feb 17 02:17:38 2011 -0800
+++ b/src/video/SDL_blit_1.c	Thu Feb 17 02:18:41 2011 -0800
@@ -476,7 +476,6 @@
     int srcskip = info->src_skip;
     Uint8 *dst = info->dst;
     int dstskip = info->dst_skip;
-    SDL_PixelFormat *srcfmt = info->src_fmt;
     SDL_PixelFormat *dstfmt = info->dst_fmt;
     const SDL_Color *srcpal = info->src_fmt->palette->colors;
     Uint32 ckey = info->colorkey;
--- a/src/video/uikit/SDL_uikitappdelegate.m	Thu Feb 17 02:17:38 2011 -0800
+++ b/src/video/uikit/SDL_uikitappdelegate.m	Thu Feb 17 02:18:41 2011 -0800
@@ -53,7 +53,7 @@
     UIApplicationMain(argc, argv, NULL, @"SDLUIKitDelegate");
     
     [pool release];
-    
+    return 0;
 }
 
 @implementation SDLUIKitDelegate