Fixed format warnings: format not a string literal and no format arguments
authorSam Lantinga <slouken@libsdl.org>
Sun, 15 Jun 2014 13:16:42 -0700
changeset 45148116d511e5d
parent 450 175c0200df0a
child 452 b72e4038e532
Fixed format warnings: format not a string literal and no format arguments
IMG_lbm.c
IMG_pcx.c
IMG_png.c
IMG_pnm.c
IMG_tga.c
IMG_xcf.c
IMG_xpm.c
IMG_xv.c
     1.1 --- a/IMG_lbm.c	Sun May 11 11:21:10 2014 -0400
     1.2 +++ b/IMG_lbm.c	Sun Jun 15 13:16:42 2014 -0700
     1.3 @@ -476,7 +476,7 @@
     1.4              SDL_FreeSurface( Image );
     1.5              Image = NULL;
     1.6          }
     1.7 -        IMG_SetError( error );
     1.8 +        IMG_SetError( "%s", error );
     1.9      }
    1.10  
    1.11      return( Image );
     2.1 --- a/IMG_pcx.c	Sun May 11 11:21:10 2014 -0400
     2.2 +++ b/IMG_pcx.c	Sun Jun 15 13:16:42 2014 -0700
     2.3 @@ -254,7 +254,7 @@
     2.4              SDL_FreeSurface(surface);
     2.5              surface = NULL;
     2.6          }
     2.7 -        IMG_SetError(error);
     2.8 +        IMG_SetError("%s", error);
     2.9      }
    2.10      return(surface);
    2.11  }
     3.1 --- a/IMG_png.c	Sun May 11 11:21:10 2014 -0400
     3.2 +++ b/IMG_png.c	Sun Jun 15 13:16:42 2014 -0700
     3.3 @@ -554,7 +554,7 @@
     3.4              SDL_FreeSurface(surface);
     3.5              surface = NULL;
     3.6          }
     3.7 -        IMG_SetError(error);
     3.8 +        IMG_SetError("%s", error);
     3.9      }
    3.10      return(surface);
    3.11  }
     4.1 --- a/IMG_pnm.c	Sun May 11 11:21:10 2014 -0400
     4.2 +++ b/IMG_pnm.c	Sun Jun 15 13:16:42 2014 -0700
     4.3 @@ -236,7 +236,7 @@
     4.4              SDL_FreeSurface(surface);
     4.5              surface = NULL;
     4.6          }
     4.7 -        IMG_SetError(error);
     4.8 +        IMG_SetError("%s", error);
     4.9      }
    4.10      return(surface);
    4.11  }
     5.1 --- a/IMG_tga.c	Sun May 11 11:21:10 2014 -0400
     5.2 +++ b/IMG_tga.c	Sun Jun 15 13:16:42 2014 -0700
     5.3 @@ -323,7 +323,7 @@
     5.4      if ( img ) {
     5.5          SDL_FreeSurface(img);
     5.6      }
     5.7 -    IMG_SetError(error);
     5.8 +    IMG_SetError("%s", error);
     5.9      return NULL;
    5.10  }
    5.11  
     6.1 --- a/IMG_xcf.c	Sun May 11 11:21:10 2014 -0400
     6.2 +++ b/IMG_xcf.c	Sun Jun 15 13:16:42 2014 -0700
     6.3 @@ -818,7 +818,7 @@
     6.4        SDL_FreeSurface(surface);
     6.5        surface = NULL;
     6.6      }
     6.7 -    IMG_SetError(error);
     6.8 +    IMG_SetError("%s", error);
     6.9    }
    6.10  
    6.11    return(surface);
     7.1 --- a/IMG_xpm.c	Sun May 11 11:21:10 2014 -0400
     7.2 +++ b/IMG_xpm.c	Sun Jun 15 13:16:42 2014 -0700
     7.3 @@ -1143,7 +1143,7 @@
     7.4              SDL_FreeSurface(image);
     7.5              image = NULL;
     7.6          }
     7.7 -        IMG_SetError(error);
     7.8 +        IMG_SetError("%s", error);
     7.9      }
    7.10      if (keystrings)
    7.11          SDL_free(keystrings);
     8.1 --- a/IMG_xv.c	Sun May 11 11:21:10 2014 -0400
     8.2 +++ b/IMG_xv.c	Sun Jun 15 13:16:42 2014 -0700
     8.3 @@ -143,7 +143,7 @@
     8.4              SDL_FreeSurface(surface);
     8.5              surface = NULL;
     8.6          }
     8.7 -        IMG_SetError(error);
     8.8 +        IMG_SetError("%s", error);
     8.9      }
    8.10      return surface;
    8.11  }