Skip to content

Commit

Permalink
Fixed warnings with MPW
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 14, 2006
1 parent 3e0b121 commit 1719892
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions IMG_gif.c
Expand Up @@ -317,7 +317,8 @@ DoExtension(SDL_RWops *src, int label)
break;
case 0xfe: /* Comment Extension */
str = "Comment Extension";
while (GetDataBlock(src, (unsigned char *) buf) != 0);
while (GetDataBlock(src, (unsigned char *) buf) != 0)
;
return FALSE;
case 0xf9: /* Graphic Control Extension */
str = "Graphic Control Extension";
Expand All @@ -328,15 +329,17 @@ DoExtension(SDL_RWops *src, int label)
if ((buf[0] & 0x1) != 0)
Gif89.transparent = buf[3];

while (GetDataBlock(src, (unsigned char *) buf) != 0);
while (GetDataBlock(src, (unsigned char *) buf) != 0)
;
return FALSE;
default:
str = (char *)buf;
sprintf(str, "UNKNOWN (0x%02x)", label);
break;
}

while (GetDataBlock(src, (unsigned char *) buf) != 0);
while (GetDataBlock(src, (unsigned char *) buf) != 0)
;

return FALSE;
}
Expand Down Expand Up @@ -466,7 +469,8 @@ LWZReadByte(SDL_RWops *src, int flag, int input_code_size)
if (ZeroDataBlock)
return -2;

while ((count = GetDataBlock(src, buf)) > 0);
while ((count = GetDataBlock(src, buf)) > 0)
;

if (count != 0) {
/*
Expand Down Expand Up @@ -533,7 +537,8 @@ ReadImage(SDL_RWops * src, int len, int height, int cmapSize,
** If this is an "uninteresting picture" ignore it.
*/
if (ignore) {
while (LWZReadByte(src, FALSE, c) >= 0);
while (LWZReadByte(src, FALSE, c) >= 0)
;
return NULL;
}
image = ImageNewCmap(len, height, cmapSize);
Expand Down

0 comments on commit 1719892

Please sign in to comment.