Skip to content

Commit

Permalink
Fixed compiler warning for unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 30, 2011
1 parent 1379fc3 commit ce04030
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -581,7 +581,7 @@ static SDL_bool JS_ConfigJoystick(SDL_Joystick *joystick, int fd)
{
SDL_bool handled;
unsigned char n;
int old_axes, tmp_naxes, tmp_nhats, tmp_nballs;
int tmp_naxes, tmp_nhats, tmp_nballs;
const char *name;
char *env, env_name[128];
int i;
Expand All @@ -601,7 +601,6 @@ static SDL_bool JS_ConfigJoystick(SDL_Joystick *joystick, int fd)
}

name = SDL_SYS_JoystickName(joystick->index);
old_axes = joystick->naxes;

/* Generic analog joystick support */
if ( SDL_strstr(name, "Analog") == name && SDL_strstr(name, "-hat") ) {
Expand Down

0 comments on commit ce04030

Please sign in to comment.