Skip to content

Commit 31a979a

Browse files
kilograhamliamfraser
authored andcommitted
fix some clang compiler warnings
1 parent 5f6152a commit 31a979a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

examples/host/cdc_msc_hid/src/hid_app.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ static void process_mouse_report(hid_mouse_report_t const * report)
235235
static void process_generic_report(uint8_t dev_addr, uint8_t instance, uint8_t const* report, uint16_t len)
236236
{
237237
(void) dev_addr;
238+
(void) len;
238239

239240
uint8_t const rpt_count = hid_info[instance].report_count;
240241
tuh_hid_report_info_t* rpt_info_arr = hid_info[instance].report_info;

examples/host/hid_controller/src/hid_app.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ bool diff_report(sony_ds4_report_t const* rpt1, sony_ds4_report_t const* rpt2)
253253

254254
void process_sony_ds4(uint8_t const* report, uint16_t len)
255255
{
256+
(void)len;
256257
const char* dpad_str[] = { "N", "NE", "E", "SE", "S", "SW", "W", "NW", "none" };
257258

258259
// previous report used to compare for changes

src/class/hid/hid_host.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,9 @@ uint8_t tuh_hid_parse_report_descriptor(tuh_hid_report_info_t* report_info_arr,
657657
uint8_t const data8 = desc_report[0];
658658

659659
TU_LOG(3, "tag = %d, type = %d, size = %d, data = ", tag, type, size);
660-
for (uint32_t i = 0; i < size; i++) TU_LOG(3, "%02X ", desc_report[i]);
660+
for (uint32_t i = 0; i < size; i++) {
661+
TU_LOG(3, "%02X ", desc_report[i]);
662+
}
661663
TU_LOG(3, "\r\n");
662664

663665
switch (type) {

0 commit comments

Comments
 (0)