SDL_image: IMG_xcf.c: fixed -Wunused-but-set-variable warnings. (633dc)

From 633dc522f5114f6d473c910dace62e8ca27a1f7d Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 27 May 2022 14:10:10 +0300
Subject: [PATCH] IMG_xcf.c: fixed -Wunused-but-set-variable warnings.

---
 IMG_xcf.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/IMG_xcf.c b/IMG_xcf.c
index 2e83b8bf..6277947d 100644
--- a/IMG_xcf.c
+++ b/IMG_xcf.c
@@ -539,7 +539,6 @@ static unsigned char * load_xcf_tile_none (SDL_RWops * src, Uint32 len, int bpp,
 
 static unsigned char * load_xcf_tile_rle (SDL_RWops * src, Uint32 len, int bpp, int x, int y) {
   unsigned char * load, * t, * data, * d;
-  Uint32 reallen;
   int i, size, count, j, length;
   unsigned char val;
 
@@ -548,7 +547,8 @@ static unsigned char * load_xcf_tile_rle (SDL_RWops * src, Uint32 len, int bpp,
   }
 
   t = load = (unsigned char *) malloc (len);
-  reallen = SDL_RWread (src, t, 1, len);
+
+  SDL_RWread (src, t, 1, len); /* reallen */
 
   data = (unsigned char *) calloc (1, x*y*bpp);
   for (i = 0; i < bpp; i++) {
@@ -647,7 +647,6 @@ do_layer_surface(SDL_Surface * surface, SDL_RWops * src, xcf_header * head, xcf_
   xcf_level     * level;
   unsigned char * tile;
   Uint8  * p8;
-  Uint16 * p16;
   Uint32 * p;
   int i, j;
   Uint32 x, y, tx, ty, ox, oy;
@@ -702,7 +701,6 @@ do_layer_surface(SDL_Surface * surface, SDL_RWops * src, xcf_header * head, xcf_
       }
 
       p8  = tile;
-      p16 = (Uint16 *) p8;
       p   = (Uint32 *) p8;
       for (y=ty; y < ty+oy; y++) {
 	if ((y >= surface->h) || ((tx+ox) > surface->w)) {