Mattias Engdeg�rd - Fri Mar 2 14:48:09 PST 2001
authorSam Lantinga <slouken@lokigames.com>
Fri, 02 Mar 2001 22:48:41 +0000
changeset 225f9c7cfd0b79
parent 21 fcbcd2324998
child 23 234c77dda0d2
Mattias Engdeg�rd - Fri Mar 2 14:48:09 PST 2001
* Cleaned up some compiler warnings
CHANGES
IMG_jpg.c
IMG_png.c
IMG_xpm.c
configure.in
     1.1 --- a/CHANGES	Tue Feb 27 21:29:11 2001 +0000
     1.2 +++ b/CHANGES	Fri Mar 02 22:48:41 2001 +0000
     1.3 @@ -1,5 +1,7 @@
     1.4  
     1.5  1.1.1:
     1.6 +Mattias Engdegrd - Fri Mar  2 14:48:09 PST 2001
     1.7 + * Cleaned up some compiler warnings
     1.8  Mattias Engdegrd - Tue Feb 27 12:44:43 PST 2001
     1.9   * Improved the PCX loading code
    1.10   * Modified showimage to set hardware palette for 8-bit displays
     2.1 --- a/IMG_jpg.c	Tue Feb 27 21:29:11 2001 +0000
     2.2 +++ b/IMG_jpg.c	Fri Mar 02 22:48:41 2001 +0000
     2.3 @@ -47,7 +47,7 @@
     2.4  		if ( (magic[0] == 0xFF) && (magic[1] == 0xD8) ) {
     2.5  			SDL_RWread(src, magic, 4, 1);
     2.6  			SDL_RWread(src, magic, 4, 1);
     2.7 -			if ( strncmp(magic, "JFIF", 4) == 0 ) {
     2.8 +			if ( memcmp((char *)magic, "JFIF", 4) == 0 ) {
     2.9  				is_JPG = 1;
    2.10  			}
    2.11  		}
     3.1 --- a/IMG_png.c	Tue Feb 27 21:29:11 2001 +0000
     3.2 +++ b/IMG_png.c	Fri Mar 02 22:48:41 2001 +0000
     3.3 @@ -76,7 +76,7 @@
     3.4  /* See if an image is contained in a data source */
     3.5  int IMG_isPNG(SDL_RWops *src)
     3.6  {
     3.7 -   char buf[PNG_BYTES_TO_CHECK];
     3.8 +   unsigned char buf[PNG_BYTES_TO_CHECK];
     3.9  
    3.10     /* Read in the signature bytes */
    3.11     if (SDL_RWread(src, buf, 1, PNG_BYTES_TO_CHECK) != PNG_BYTES_TO_CHECK)
     4.1 --- a/IMG_xpm.c	Tue Feb 27 21:29:11 2001 +0000
     4.2 +++ b/IMG_xpm.c	Fri Mar 02 22:48:41 2001 +0000
     4.3 @@ -143,7 +143,7 @@
     4.4  }
     4.5  
     4.6  /* fast lookup that works if cpp == 1 */
     4.7 -#define QUICK_COLORHASH(hash, key) ((hash)->table[*(key)]->color)
     4.8 +#define QUICK_COLORHASH(hash, key) ((hash)->table[*(Uint8 *)(key)]->color)
     4.9  
    4.10  static Uint32 get_colorhash(struct color_hash *hash, const char *key, int cpp)
    4.11  {
    4.12 @@ -388,7 +388,7 @@
    4.13  	}
    4.14  	dst = image->pixels;
    4.15  	for (y = 0; y < h; ) {
    4.16 -		Uint8 *s;
    4.17 +		char *s;
    4.18  		char c;
    4.19  		do {
    4.20  			if(SDL_RWread(src, &c, 1, 1) <= 0) {
     5.1 --- a/configure.in	Tue Feb 27 21:29:11 2001 +0000
     5.2 +++ b/configure.in	Fri Mar 02 22:48:41 2001 +0000
     5.3 @@ -49,6 +49,7 @@
     5.4  AM_PROG_LIBTOOL
     5.5  AC_PROG_MAKE_SET
     5.6  AC_PROG_CC
     5.7 +AC_C_INLINE
     5.8  AC_PROG_INSTALL
     5.9  
    5.10  dnl The alpha architecture needs special flags for binary portability