Closed NasserN closed 9 months 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; | ^
Any way we can get this merged? Have experienced this recently, as have others using this bootloader with ZMK on custom samd21 boards.
'c' should be initialized to 0, throws warning (treated like an error) otherwise.