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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jesper Juhl <jesper.juhl@...>
Cc: Dmitry Torokhov <dmitry.torokhov@...>, Linux Kernel Mailing List <linux-kernel@...>, Vojtech Pavlik <vojtech@...>, Johann Deneux <johann.deneux@...>, <dtor@...>, <linux-input@...>, <linux-joystick@...>
Date: Thursday, August 30, 2007 - 6:57 pm

Hi,


On Fri, 31 Aug 2007, Jesper Juhl wrote:


Hmm, would this not still give a warning when JOYSTICK_IFORCE_USB=y?
[ I didn't know mixing code and declarations (not at top of statement
  block) was accepted style in the kernel ... ]

IMHO either you should at least wrap that case inside a {} of its
own (so that the int status; is at top of a statement block), or else,
preferably, just add "__maybe_unused" to the first declaration that you
removed just now.


Satyam
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] input: Silence 'unused variable' warning in ifor..., Satyam Sharma, (Thu Aug 30, 6:57 pm)