Fixed compiler warning for unused variable. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Fri, 30 Dec 2011 04:03:31 -0500
branchSDL-1.2
changeset 6122 7ba8d4c1b11d
parent 6121 e6fcc5368210
child 6123 ce2493a9cefb
Fixed compiler warning for unused variable.
src/joystick/linux/SDL_sysjoystick.c
--- a/src/joystick/linux/SDL_sysjoystick.c	Fri Dec 30 03:18:26 2011 -0500
+++ b/src/joystick/linux/SDL_sysjoystick.c	Fri Dec 30 04:03:31 2011 -0500
@@ -581,7 +581,7 @@
 {
 	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;
@@ -601,7 +601,6 @@
 	}
 
 	name = SDL_SYS_JoystickName(joystick->index);
-	old_axes = joystick->naxes;
 
 	/* Generic analog joystick support */
 	if ( SDL_strstr(name, "Analog") == name && SDL_strstr(name, "-hat") ) {