diff options
| author | hathach <[email protected]> | 2022-06-28 16:27:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-06-28 16:27:44 +0700 |
| commit | 898b52be45f476d7062d50fed722d92f0dccf4ae (patch) | |
| tree | b86a779cde318059dc76dc254ea8768c050e3bcb /examples/device/hid_composite | |
| parent | 83602ea1234e992dd90d6b3c9b1f0fd8b2bf5a78 (diff) | |
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
Diffstat (limited to 'examples/device/hid_composite')
| -rw-r--r-- | examples/device/hid_composite/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
