Avoid gcc warnings for some joystick code (e.g. on Solaris).

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@675 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-07-13 11:44:59 +00:00
parent 4901f840a9
commit e802d0e918
2 changed files with 5 additions and 0 deletions

View File

@ -1121,3 +1121,5 @@ extensions.
(291) Solaris doesn't have cfmakeraw, but it is only a convenience function
for some bit-fiddling, anyway.
(292) Avoid gcc warnings for some joystick code (e.g. on Solaris).

View File

@ -1066,6 +1066,9 @@ static void fghJoystickOpen( SFG_Joystick* joy )
# endif
#endif
/* Silence gcc, the correct #ifdefs would be too fragile... */
(void)i;
/*
* Default values (for no joystick -- each conditional will reset the
* error flag)