Re: [PATCH] input: Silence 'unused variable' warning in iforce joystick driver

2007-08-31 Thread Dmitry Torokhov
Hi Jesper, On 8/30/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > On 31/08/2007, Satyam Sharma <[EMAIL PROTECTED]> wrote: > ... > > > > Hmm, would this not still give a warning when JOYSTICK_IFORCE_USB=y? > > Arrgh, I messed that one up real good... Thank you for your keen eye Satyam > :-) > > > >

Re: [PATCH] input: Silence 'unused variable' warning in iforce joystick driver

2007-08-30 Thread Jesper Juhl
On 31/08/2007, Satyam Sharma <[EMAIL PROTECTED]> wrote: ... > > Hmm, would this not still give a warning when JOYSTICK_IFORCE_USB=y? Arrgh, I messed that one up real good... Thank you for your keen eye Satyam :-) > [ I didn't know mixing code and declarations (not at top of statement > block

Re: [PATCH] input: Silence 'unused variable' warning in iforce joystick driver

2007-08-30 Thread Satyam Sharma
Hi, On Fri, 31 Aug 2007, Jesper Juhl wrote: > In the iforce driver we currently get this warning > > drivers/input/joystick/iforce/iforce-packets.c: In function > 'iforce_get_id_packet': > drivers/input/joystick/iforce/iforce-packets.c:249: warning: unused variable > 'status' > > if CONFIG

[PATCH] input: Silence 'unused variable' warning in iforce joystick driver

2007-08-30 Thread Jesper Juhl
In the iforce driver we currently get this warning drivers/input/joystick/iforce/iforce-packets.c: In function 'iforce_get_id_packet': drivers/input/joystick/iforce/iforce-packets.c:249: warning: unused variable 'status' if CONFIG_JOYSTICK_IFORCE_USB is not defined. The warning is easy to av