adafruit / uf2-samdx1

MSC bootloader (based on UF2) for SAMD21
Other
214 stars 187 forks source link

Update cdc_enumerate.c #205

Closed NasserN closed 9 months ago

NasserN commented 1 year ago

'c' should be initialized to 0, throws warning (treated like an error) otherwise.

NasserN commented 1 year ago

src/cdc_enumerate.c:725:5: error: 'c' may be used uninitialized [-Werror=maybe-uninitialized] 725 | USB_Write(&c, 0, 0); | ^~~~~~~~~~~~~~~~~~~ src/cdc_enumerate.c:669:10: note: by argument 1 of type 'const void *' to 'USB_Write' declared here 669 | uint32_t USB_Write(const void *pData, uint32_t length, uint8_t ep_num) { | ^~~~~~~~~ src/cdc_enumerate.c:724:13: note: 'c' declared here 724 | uint8_t c; | ^

petejohanson commented 9 months ago

Any way we can get this merged? Have experienced this recently, as have others using this bootloader with ZMK on custom samd21 boards.