From 898b52be45f476d7062d50fed722d92f0dccf4ae Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 28 Jun 2022 16:27:44 +0700 Subject: update rp2040 warnings - remove "-Wno-stringop-overflow -Wno-array-bounds" - skip -Wconversion for gcc 9 and prior - suppress_tinyusb_warnings only when building with gcc 9 and below --- examples/device/hid_composite/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/device/hid_composite/src') diff --git a/examples/device/hid_composite/src/main.c b/examples/device/hid_composite/src/main.c index 3a3839a1a..05315f266 100644 --- a/examples/device/hid_composite/src/main.c +++ b/examples/device/hid_composite/src/main.c @@ -230,7 +230,7 @@ void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_ (void) instance; (void) len; - uint8_t next_report_id = (uint8_t)(report[0] + 1); + uint8_t next_report_id = report[0] + 1u; if (next_report_id < REPORT_ID_COUNT) { -- cgit v1.3.1