Warnings in PB with SDL1.2.3 in OSX.1?

Here is the warnings I get with compiling my code.
warning: enumeration value SDLK_UNKNOWN not handled in switch
warning: enumeration value SDLK_BACKSPACE not handled in switch
I have 233 of these warnings? I tried to include sdl_keysym.h I think
and no good either? It runs but whats missing?

Try adding the default: case to the switch block.

This is happening because the compiler knows all the possible values for
the enumeration, so if they are missing in the switch statement (which is
likely a programming error), it emits a warning. If you add the default:
case the compiler understands what to do with all the values not specified
in the switch.

This warning is a feature of GCC turned on with the -Wall option and
turned on/off with -Wswitch and -Wno-switch.

Cheers,
Darrell

Here is the warnings I
get with compiling my
code. > warning: enumeration value SDLK_UNKNOWN not handled in switchOn Sun, 11 Nov 2001, JUGGERNAUT wrote:
warning: enumeration value SDLK_BACKSPACE not handled in switch
I have 233 of these warnings? I tried to include sdl_keysym.h I think
and no good either? It runs but whats missing?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl