# HG changeset patch # User Ozkan Sezer # Date 1570642210 -10800 # Node ID 58e4a9ae8cd27f2b8cf44e076108878aa99d0752 # Parent a1fd4472ed6b8c5842ddaf13dea529ed9df11a3d IMG_gif.c: build fixes. diff -r a1fd4472ed6b -r 58e4a9ae8cd2 IMG_gif.c --- a/IMG_gif.c Wed Oct 09 09:29:59 2019 -0700 +++ b/IMG_gif.c Wed Oct 09 20:30:10 2019 +0300 @@ -211,12 +211,13 @@ int bitPixel; char version[4]; Image *image = NULL; + Anim_t *anim; + Frame_t *frames, *frame; State_t state; + state.ZeroDataBlock = FALSE; state.fresh = FALSE; state.last_byte = 0; - Anim_t *anim; - Frame_t *frames, *frame; if (src == NULL) { return NULL; @@ -615,13 +616,15 @@ static Image * ReadImage(SDL_RWops * src, int len, int height, int cmapSize, unsigned char cmap[3][MAXCOLORMAPSIZE], - int /*gray*/, int interlace, int ignore, State_t * state) + int gray, int interlace, int ignore, State_t * state) { Image *image; unsigned char c; int i, v; int xpos = 0, ypos = 0, pass = 0; + (void) gray; /* unused */ + /* ** Initialize the compression routines */