# HG changeset patch # User Ryan C. Gordon # Date 1128328708 0 # Node ID 91569ec25acd608b4cf8ed2f4dfe8487ccf26235 # Parent d93862a3d8217f025182df7a09fd241942e95e53 Fixed some compiler warnings about "unreachable code" on Watcom C. diff -r d93862a3d821 -r 91569ec25acd src/video/SDL_RLEaccel.c --- a/src/video/SDL_RLEaccel.c Mon Oct 03 08:12:32 2005 +0000 +++ b/src/video/SDL_RLEaccel.c Mon Oct 03 08:38:28 2005 +0000 @@ -1632,10 +1632,11 @@ static Uint32 getpix_24(Uint8 *srcbuf) { - if(SDL_BYTEORDER == SDL_LIL_ENDIAN) - return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16); - else - return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2]; +#if SDL_BYTEORDER == SDL_LIL_ENDIAN + return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16); +#else + return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2]; +#endif } static Uint32 getpix_32(Uint8 *srcbuf) diff -r d93862a3d821 -r 91569ec25acd src/video/SDL_surface.c --- a/src/video/SDL_surface.c Mon Oct 03 08:12:32 2005 +0000 +++ b/src/video/SDL_surface.c Mon Oct 03 08:38:28 2005 +0000 @@ -712,8 +712,9 @@ break; case 3: - if(SDL_BYTEORDER == SDL_BIG_ENDIAN) + #if SDL_BYTEORDER == SDL_BIG_ENDIAN color <<= 8; + #endif for ( y=dstrect->h; y; --y ) { Uint8 *pixels = row; for ( x=dstrect->w; x; --x ) {