Skip to content

Commit 44328f8

Browse files
author
Stephen
committed
Fix compiler warnings
1 parent 97ce43c commit 44328f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libusb/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extern "C" {
6969
#define DETACH_KERNEL_DRIVER
7070
#endif
7171

72-
enum report_descr_type {
72+
enum report_descr_type : int {
7373
REPORT_DESCR_INPUT = 0x80,
7474
REPORT_DESCR_OUTPUT = 0x90,
7575
REPORT_DESCR_FEATURE = 0xB0,

libusb/test/max_input_report_size_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int parse_max_input_report_size(const char * filename, struct max_report_
3636
if (sscanf(line, "pp_data->caps_info[2]->ReportByteLength = %hu\n", &temp_ushort) == 1) {
3737
sizes->feature = (size_t)temp_ushort;
3838
}
39-
if (sscanf(line, "pp_data->cap[%*hu]->ReportID = 0x%hu\n", &temp_ushort) == 1) {
39+
if (sscanf(line, "pp_data->cap[%*u]->ReportID = 0x%hu\n", &temp_ushort) == 1) {
4040
if (temp_ushort) {
4141
has_report_id = 1;
4242
}

0 commit comments

Comments
 (0)