[SDL] argument types for SDL_MapRGB (newbie)

Daniel Phillips phillips at arcor.de
Wed Jan 8 12:51:01 PST 2003


On Wednesday 08 January 2003 21:14, Peter Jay Salzman wrote:
> sdl newbie alert.  i'm getting the following warnings:
>
> warning: passing arg 2 of `SDL_MapRGB' with different width due to
> prototype warning: passing arg 3 of `SDL_MapRGB' with different width due
> to prototype warning: passing arg 4 of `SDL_MapRGB' with different width
> due to prototype
>
> from this line of code:
>
>    Uint32 white = SDL_MapRGB(screen->format, 255, 255, 255);

There is nothing wrong with that line of code.  It does not cause a warning
here (gcc 2.95.4).  Which compiler?

Daniel




More information about the SDL mailing list