098e0766d1
libhid is a rewrite of libHID[0] and aims to provide the same functionality from a more organised framework. It aims to provide a layer of abstraction for accessing HID-class devices over USB or serial lines (similar to what libusb provides for the base USB protocol). http://www.ghz.cc/~clepple/libHID/doc/html/ libhid has been designed because it is needed in two other projects (libphdigets and nut). As such, it does not have a complete featureset yet but is rather a work in progress (alpha state). We invite everyone to contribute or get in touch with us for additional features. Please find more information on the project website: http://libhid.alioth.debian.org
26 lines
1,014 B
Text
26 lines
1,014 B
Text
$NetBSD: patch-test_lshid_c,v 1.1 2013/12/03 01:30:06 mef Exp $
|
|
|
|
lshid.c:32:87: error: parameter 'len' set but not used [-Werror=unused-but-set-parameter]
|
|
|
|
--- test/lshid.c.orig 2007-03-31 23:27:51.000000000 +0900
|
|
+++ test/lshid.c 2013-10-10 07:40:18.961805000 +0900
|
|
@@ -29,7 +29,7 @@ char *hid_id[32]; /* FIXME: 32 devices M
|
|
|
|
struct usb_dev_handle;
|
|
|
|
-bool device_iterator (struct usb_dev_handle const* usbdev, void* custom, unsigned int len)
|
|
+bool device_iterator (struct usb_dev_handle const* usbdev, void* custom __attribute((unused)), unsigned int len __attribute((unused)))
|
|
{
|
|
bool ret = false;
|
|
int i;
|
|
@@ -37,8 +37,10 @@ bool device_iterator (struct usb_dev_han
|
|
const struct usb_device *device = usb_device((struct usb_dev_handle *)usbdev);
|
|
|
|
/* only here to prevent the unused warning */
|
|
+#if 0
|
|
/* TODO remove */
|
|
len = *((unsigned long*)custom);
|
|
+#endif
|
|
|
|
/* Obtain the device's full path */
|
|
//sprintf(current_dev_path, "%s/%s", usbdev->bus->dirname, usbdev->device->filename);
|