Skip to content

Commit

Permalink
IMG_bmp.c: silenced unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jan 26, 2022
1 parent 2dab1ee commit 7f04889
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions IMG_bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f04889

Please sign in to comment.