comparison src/joystick/SDL_joystick.c @ 1612:97d0966f4bf7

Fixed some ultra-pedantic gcc warnings
author Sam Lantinga <slouken@libsdl.org>
date Fri, 24 Mar 2006 06:10:24 +0000
parents d910939febfa
children 782fd950bd46 c121d94672cb 6bdec986f2f6
comparison
equal deleted inserted replaced
1611:ec3466b08f17 1612:97d0966f4bf7
548 #else 548 #else
549 const Uint8 event_list[] = { 549 const Uint8 event_list[] = {
550 SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYHATMOTION, 550 SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYHATMOTION,
551 SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP, 551 SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP,
552 }; 552 };
553 int i; 553 unsigned int i;
554 554
555 switch (state) { 555 switch (state) {
556 case SDL_QUERY: 556 case SDL_QUERY:
557 state = SDL_IGNORE; 557 state = SDL_IGNORE;
558 for ( i=0; i<SDL_arraysize(event_list); ++i ) { 558 for ( i=0; i<SDL_arraysize(event_list); ++i ) {