From bebc661440f60160fcab559bf73eec9bfe99fe92 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 9 Oct 2019 20:30:10 +0300 Subject: [PATCH] IMG_gif.c: build fixes. --- IMG_gif.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/IMG_gif.c b/IMG_gif.c index 1bc39f3c..c6b24a02 100644 --- a/IMG_gif.c +++ b/IMG_gif.c @@ -211,12 +211,13 @@ IMG_LoadGIF_RW_Internal(SDL_RWops *src, SDL_bool load_anim) 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 @@ LWZReadByte(SDL_RWops *src, int flag, int input_code_size, State_t * state) 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 */