From 7f04889314b2bdc7e5fdeef955c9f243b9c5a82d Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 26 Jan 2022 22:41:50 +0300
Subject: [PATCH] IMG_bmp.c: silenced unused warnings
---
IMG_bmp.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/IMG_bmp.c b/IMG_bmp.c
index 76f017b..5bc6929 100644
--- a/IMG_bmp.c
+++ b/IMG_bmp.c
@@ -606,11 +606,17 @@ LoadICOCUR_RW(SDL_RWops * src, int type, int freesrc)
int bWidth = SDL_Read8(src); /* Uint8, but 0 = 256 ! */
int bHeight = SDL_Read8(src); /* Uint8, but 0 = 256 ! */
int bColorCount = SDL_Read8(src); /* Uint8, but 0 = 256 ! */
- Uint8 bReserved = SDL_Read8(src);
- Uint16 wPlanes = SDL_ReadLE16(src);
- Uint16 wBitCount = SDL_ReadLE16(src);
- Uint32 dwBytesInRes = SDL_ReadLE32(src);
- Uint32 dwImageOffset = SDL_ReadLE32(src);
+ /* Uint8 bReserved;
+ Uint16 wPlanes;
+ Uint16 wBitCount;
+ Uint32 dwBytesInRes; */
+ Uint32 dwImageOffset;
+
+ /* bReserved = */ SDL_Read8(src);
+ /* wPlanes = */ SDL_ReadLE16(src);
+ /* wBitCount = */ SDL_ReadLE16(src);
+ /* dwBytesInRes = */ SDL_ReadLE32(src);
+ dwImageOffset = SDL_ReadLE32(src);
if (!bWidth)
bWidth = 256;