Closed GrantMTG closed 3 years ago
BTW, I just thought I should mention that, curiously, this warning occurs with STM32CubeIDE with optimizations turned on. Both Keil and STM32CubeIDE say it's OK with optimizations off. I have not tried the Keil optimizations yet.
I see no problems with GCC. Some compilers may consider that this variable is uninitialized, but this is not true. It will be initialized on the first loop iteration.
Agreed. Please to close or delete.
I don't know why this warning never showed up before during my builds, but thought people should be aware anyway:
src/usbd_stm32f103_devfs.c:368:17: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]