@@ -412,7 +412,7 @@ static int get_hid_report_descriptor_from_sysfs(const char *sysfs_path, struct h
412412 * strings pointed to by serial_number_utf8 and product_name_utf8 after use.
413413 */
414414static int
415- parse_uevent_info (const char * uevent , int * bus_type ,
415+ parse_uevent_info (const char * uevent , unsigned * bus_type ,
416416 unsigned short * vendor_id , unsigned short * product_id ,
417417 char * * serial_number_utf8 , char * * product_name_utf8 )
418418{
@@ -471,8 +471,8 @@ static int get_device_string(hid_device *dev, enum device_string_id key, wchar_t
471471 struct udev_device * udev_dev , * parent , * hid_dev ;
472472 struct stat s ;
473473 int ret = -1 ;
474- char * serial_number_utf8 = NULL ;
475- char * product_name_utf8 = NULL ;
474+ char * serial_number_utf8 = NULL ;
475+ char * product_name_utf8 = NULL ;
476476
477477 /* Create the udev object */
478478 udev = udev_new ();
@@ -495,7 +495,7 @@ static int get_device_string(hid_device *dev, enum device_string_id key, wchar_t
495495 if (hid_dev ) {
496496 unsigned short dev_vid ;
497497 unsigned short dev_pid ;
498- int bus_type ;
498+ unsigned bus_type ;
499499 size_t retm ;
500500
501501 ret = parse_uevent_info (
@@ -567,8 +567,8 @@ static int get_device_string(hid_device *dev, enum device_string_id key, wchar_t
567567 }
568568
569569end :
570- free (serial_number_utf8 );
571- free (product_name_utf8 );
570+ free (serial_number_utf8 );
571+ free (product_name_utf8 );
572572
573573 udev_device_unref (udev_dev );
574574 /* parent and hid_dev don't need to be (and can't be) unref'd.
@@ -647,7 +647,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
647647 unsigned short dev_pid ;
648648 char * serial_number_utf8 = NULL ;
649649 char * product_name_utf8 = NULL ;
650- int bus_type ;
650+ unsigned bus_type ;
651651 int result ;
652652 struct hidraw_report_descriptor report_desc ;
653653
@@ -1046,6 +1046,9 @@ int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data,
10461046// Not supported by Linux HidRaw yet
10471047int HID_API_EXPORT HID_API_CALL hid_get_input_report (hid_device * dev , unsigned char * data , size_t length )
10481048{
1049+ (void )dev ;
1050+ (void )data ;
1051+ (void )length ;
10491052 return -1 ;
10501053}
10511054
@@ -1082,6 +1085,10 @@ int HID_API_EXPORT_CALL hid_get_serial_number_string(hid_device *dev, wchar_t *s
10821085
10831086int HID_API_EXPORT_CALL hid_get_indexed_string (hid_device * dev , int string_index , wchar_t * string , size_t maxlen )
10841087{
1088+ (void )dev ;
1089+ (void )string_index ;
1090+ (void )string ;
1091+ (void )maxlen ;
10851092 return -1 ;
10861093}
10871094
0 commit comments