Skip to content

Commit

Permalink
Fix a Windows-only unused variable warning
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@40071 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
fabbo committed May 26, 2021
1 parent 1fdc383 commit 2deb9a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vice/src/joyport/joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,6 @@ int joystick_cmdline_options_init(void)

int joystick_init(void)
{
int i;

joystick_alarm = alarm_new(maincpu_alarm_context, "Joystick",
joystick_latch_handler, NULL);

Expand All @@ -988,6 +986,7 @@ int joystick_init(void)
#endif

#if (defined LINUX_JOYSTICK || defined HAS_USB_JOYSTICK || defined MAC_JOYSTICK)
int i;
for (i = 0; i < JOYPORT_MAX_PORTS; i++) {
if (joystick_port_map[i] >= JOYDEV_REALJOYSTICK_MIN) {
if (joystick_port_map[i] - JOYDEV_REALJOYSTICK_MIN < num_joystick_devices) {
Expand Down

0 comments on commit 2deb9a5

Please sign in to comment.