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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Satyam Sharma
Date: Thursday, August 30, 2007 - 3: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 if ..., Satyam Sharma, (Thu Aug 30, 3:57 pm)