Skip to content

Commit 2deb9a5

Browse files
author
fabbo
committed
Fix a Windows-only unused variable warning
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@40071 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent 1fdc383 commit 2deb9a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vice/src/joyport/joystick.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,6 @@ int joystick_cmdline_options_init(void)
968968

969969
int joystick_init(void)
970970
{
971-
int i;
972-
973971
joystick_alarm = alarm_new(maincpu_alarm_context, "Joystick",
974972
joystick_latch_handler, NULL);
975973

@@ -988,6 +986,7 @@ int joystick_init(void)
988986
#endif
989987

990988
#if (defined LINUX_JOYSTICK || defined HAS_USB_JOYSTICK || defined MAC_JOYSTICK)
989+
int i;
991990
for (i = 0; i < JOYPORT_MAX_PORTS; i++) {
992991
if (joystick_port_map[i] >= JOYDEV_REALJOYSTICK_MIN) {
993992
if (joystick_port_map[i] - JOYDEV_REALJOYSTICK_MIN < num_joystick_devices) {

0 commit comments

Comments
 (0)