Fixed compiler warning for unused variable. SDL-1.2
authorRyan C. Gordon
Fri, 30 Dec 2011 04:03:31 -0500
branchSDL-1.2
changeset 61227ba8d4c1b11d
parent 6121 e6fcc5368210
child 6123 ce2493a9cefb
Fixed compiler warning for unused variable.
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Fri Dec 30 03:18:26 2011 -0500
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Fri Dec 30 04:03:31 2011 -0500
     1.3 @@ -581,7 +581,7 @@
     1.4  {
     1.5  	SDL_bool handled;
     1.6  	unsigned char n;
     1.7 -	int old_axes, tmp_naxes, tmp_nhats, tmp_nballs;
     1.8 +	int tmp_naxes, tmp_nhats, tmp_nballs;
     1.9  	const char *name;
    1.10  	char *env, env_name[128];
    1.11  	int i;
    1.12 @@ -601,7 +601,6 @@
    1.13  	}
    1.14  
    1.15  	name = SDL_SYS_JoystickName(joystick->index);
    1.16 -	old_axes = joystick->naxes;
    1.17  
    1.18  	/* Generic analog joystick support */
    1.19  	if ( SDL_strstr(name, "Analog") == name && SDL_strstr(name, "-hat") ) {