IMG_gif.c: build fixes.
authorOzkan Sezer <sezeroz@gmail.com>
Wed, 09 Oct 2019 20:30:10 +0300
changeset 72058e4a9ae8cd2
parent 719 a1fd4472ed6b
child 721 2ab0052024a3
IMG_gif.c: build fixes.
IMG_gif.c
     1.1 --- a/IMG_gif.c	Wed Oct 09 09:29:59 2019 -0700
     1.2 +++ b/IMG_gif.c	Wed Oct 09 20:30:10 2019 +0300
     1.3 @@ -211,12 +211,13 @@
     1.4      int bitPixel;
     1.5      char version[4];
     1.6      Image *image = NULL;
     1.7 +    Anim_t *anim;
     1.8 +    Frame_t *frames, *frame;
     1.9      State_t state;
    1.10 +
    1.11      state.ZeroDataBlock = FALSE;
    1.12      state.fresh = FALSE;
    1.13      state.last_byte = 0;
    1.14 -    Anim_t *anim;
    1.15 -    Frame_t *frames, *frame;
    1.16  
    1.17      if (src == NULL) {
    1.18          return NULL;
    1.19 @@ -615,13 +616,15 @@
    1.20  static Image *
    1.21  ReadImage(SDL_RWops * src, int len, int height, int cmapSize,
    1.22            unsigned char cmap[3][MAXCOLORMAPSIZE],
    1.23 -          int /*gray*/, int interlace, int ignore, State_t * state)
    1.24 +          int gray, int interlace, int ignore, State_t * state)
    1.25  {
    1.26      Image *image;
    1.27      unsigned char c;
    1.28      int i, v;
    1.29      int xpos = 0, ypos = 0, pass = 0;
    1.30  
    1.31 +    (void) gray; /* unused */
    1.32 +
    1.33      /*
    1.34      **  Initialize the compression routines
    1.35       */