Fixed build warnings
authorSam Lantinga <slouken@libsdl.org>
Sat, 21 Jul 2007 03:30:14 +0000
changeset 17680d451f56922
parent 175 790771889034
child 177 8cdc58eb36b5
Fixed build warnings
IMG_xcf.c
IMG_xpm.c
     1.1 --- a/IMG_xcf.c	Fri Jul 20 05:25:31 2007 +0000
     1.2 +++ b/IMG_xcf.c	Sat Jul 21 03:30:14 2007 +0000
     1.3 @@ -642,7 +642,8 @@
     1.4  	      *row++ = 0xFF000000
     1.5  		| (((Uint32) (*p8)) << 16)
     1.6  		| (((Uint32) (*p8)) << 8)
     1.7 -		| (((Uint32) (*p8++)) << 0);
     1.8 +		| (((Uint32) (*p8)) << 0);
     1.9 +			++p8;
    1.10  	    }
    1.11  	    break;	    
    1.12  	  default:
     2.1 --- a/IMG_xpm.c	Fri Jul 20 05:25:31 2007 +0000
     2.2 +++ b/IMG_xpm.c	Sat Jul 21 03:30:14 2007 +0000
     2.3 @@ -310,7 +310,7 @@
     2.4  /* read XPM from either array or RWops */
     2.5  static SDL_Surface *load_xpm(char **xpm, SDL_RWops *src)
     2.6  {
     2.7 -	int start;
     2.8 +	int start = 0;
     2.9  	SDL_Surface *image = NULL;
    2.10  	int index;
    2.11  	int x, y;