Fixed warnings about unused variables and so forth.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Feb 2011 02:18:41 -0800
changeset 5332ae8b6fb1feaf
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
     1.1 --- a/src/events/SDL_touch.c	Thu Feb 17 02:17:38 2011 -0800
     1.2 +++ b/src/events/SDL_touch.c	Thu Feb 17 02:18:41 2011 -0800
     1.3 @@ -401,7 +401,6 @@
     1.4      SDL_Finger *finger;
     1.5      int posted;
     1.6      Sint16 xrel, yrel;
     1.7 -    float x_max = 0, y_max = 0;
     1.8      Uint16 x;
     1.9      Uint16 y;
    1.10      Uint16 pressure;
     2.1 --- a/src/render/opengles2/SDL_render_gles2.c	Thu Feb 17 02:17:38 2011 -0800
     2.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Thu Feb 17 02:18:41 2011 -0800
     2.3 @@ -161,8 +161,6 @@
     2.4  static void
     2.5  GLES2_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
     2.6  {
     2.7 -    GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;
     2.8 -
     2.9      if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
    2.10          /* Rebind the context to the window area */
    2.11          SDL_CurrentContext = NULL;
    2.12 @@ -232,7 +230,6 @@
    2.13  static int
    2.14  GLES2_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
    2.15  {
    2.16 -    GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;
    2.17      GLES2_TextureData *tdata;
    2.18      GLenum format;
    2.19      GLenum type;
    2.20 @@ -995,7 +992,6 @@
    2.21      GLfloat texCoords[8];
    2.22      GLuint locTexture;
    2.23      GLuint locModulation;
    2.24 -    GLuint locColorTable;
    2.25  
    2.26      GLES2_ActivateRenderer(renderer);
    2.27  
     3.1 --- a/src/render/software/SDL_render_sw.c	Thu Feb 17 02:17:38 2011 -0800
     3.2 +++ b/src/render/software/SDL_render_sw.c	Thu Feb 17 02:18:41 2011 -0800
     3.3 @@ -511,7 +511,6 @@
     3.4  static void
     3.5  SW_RenderPresent(SDL_Renderer * renderer)
     3.6  {
     3.7 -    SW_RenderData *data = (SW_RenderData *) renderer->driverdata;
     3.8      SDL_Window *window = renderer->window;
     3.9  
    3.10      if (window) {
     4.1 --- a/src/video/SDL_blit_1.c	Thu Feb 17 02:17:38 2011 -0800
     4.2 +++ b/src/video/SDL_blit_1.c	Thu Feb 17 02:18:41 2011 -0800
     4.3 @@ -476,7 +476,6 @@
     4.4      int srcskip = info->src_skip;
     4.5      Uint8 *dst = info->dst;
     4.6      int dstskip = info->dst_skip;
     4.7 -    SDL_PixelFormat *srcfmt = info->src_fmt;
     4.8      SDL_PixelFormat *dstfmt = info->dst_fmt;
     4.9      const SDL_Color *srcpal = info->src_fmt->palette->colors;
    4.10      Uint32 ckey = info->colorkey;
     5.1 --- a/src/video/uikit/SDL_uikitappdelegate.m	Thu Feb 17 02:17:38 2011 -0800
     5.2 +++ b/src/video/uikit/SDL_uikitappdelegate.m	Thu Feb 17 02:18:41 2011 -0800
     5.3 @@ -53,7 +53,7 @@
     5.4      UIApplicationMain(argc, argv, NULL, @"SDLUIKitDelegate");
     5.5      
     5.6      [pool release];
     5.7 -    
     5.8 +    return 0;
     5.9  }
    5.10  
    5.11  @implementation SDLUIKitDelegate