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
This commit is contained in:
hathach
2022-06-28 16:27:44 +07:00
parent 83602ea123
commit 898b52be45
4 changed files with 37 additions and 32 deletions

View File

@@ -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)
{