On Sat, Mar 05, 2005 at 10:23:25PM -0500, Adam Kropelin wrote: > hid-debug.h includes resolv_event, which is currently unused, resulting > in a compiler warning. Since this function is presumably useful for > debugging and is only included when DEBUG is enabled for hid-core, mark > the function with __attribute__((unused)) to silence the warning. > > Signed-off-by: Adam Kropelin <[EMAIL PROTECTED]>
It's not used if DEBUG is only enabled in hid-core, it _is_ used when DEBUG is also enabled in hid-input ... > --- linux-2.6.11/drivers/usb/input/hid-debug.h Thu Mar 3 20:40:49 2005 > +++ linux-2.6.11.adk/drivers/usb/input/hid-debug.h Sat Mar 5 22:04:43 2005 > @@ -723,7 +723,7 @@ > [EV_SND] = sounds, [EV_REP] = repeats, > }; > > -static void resolv_event(__u8 type, __u16 code) { > +static void __attribute__((unused)) resolv_event(__u8 type, __u16 code) { > > printk("%s.%s", events[type] ? events[type] : "?", > names[type] ? (names[type][code] ? names[type][code] : "?") : > "?"); > > -- Vojtech Pavlik SuSE Labs, SuSE CR ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel