Removed some unused variables that gcc 4.6.1 complains about.
This commit is contained in:
parent
4f18aa19f5
commit
8912814135
10 changed files with 33 additions and 68 deletions
|
@ -582,7 +582,7 @@ 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;
|
||||
|
@ -602,7 +602,6 @@ 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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue