hid-debug.h includes resolv_event, which is not used if DEBUG is only
enabled in hid-core, but _is_ used when DEBUG is also enabled in hid-input.
Mark the function with __attribute__((unused)) to silence the warning
when only hid-core is being DEBUGged.

Signed-off-by: Adam Kropelin <[EMAIL PROTECTED]>

--- 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] : "?") : 
"?");



-------------------------------------------------------
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

Reply via email to