[debian-hurd-Patches][312037] freeglut 2.4.0
Patches item #312037, was changed at 30/10/2009 19:30 by Samuel Thibault
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=410472&aid=312037&group_id=30628
Status: Open
Priority: 3
Submitted By: Pino Toscano (pino-guest)
Assigned to: Nobody (None)
Summary: freeglut 2.4.0
Category: None
Group: None
Resolution: None
Initial Comment:
Simple patch to make freeglut compile on GNU/Hurd.
Basically, the problem is in fghJoystickOpen(), where there is
- a 'int i;' declaration at the very beginning
- various snippets for the target hosts and the platforms in each
but none of those is used for Hurd, so gcc (because of -Wall -Werror) errors out because of the unused variable.
The easiest solution is to pretend it is "used" on GNU/Hurd as well.
----------------------------------------------------------------------
>Comment By: Samuel Thibault (sthibault)
Date: 31/10/2009 01:44
Message:
Ok, please submit :)
----------------------------------------------------------------------
Comment By: Pino Toscano (pino-guest)
Date: 30/10/2009 20:59
Message:
Right, better intialize it in the OS-agnostic initialization part.
----------------------------------------------------------------------
Comment By: Samuel Thibault (sthibault)
Date: 30/10/2009 19:59
Message:
Mmm, I would have rather put it in a #else part, or even just along the
Default values saying no joystick, so that it's useful to all OSes.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=410472&aid=312037&group_id=30628
Reply to: