STMicroelectronics / OpenOCD

STMicroelectronics customized version of OpenOCD supporting STM32 MCUs and MPUs
Other
130 stars 35 forks source link

Update stlink_usb.c #13

Closed domologic closed 2 years ago

domologic commented 2 years ago

misc_items variable is uninitialzed in function stlink_dap_op_queue_run_internal, therefore stlink_usb.c fails to compile when the option -Werror=maybe-uninitialized is set (I've not set it intentionally, so I assume this is the default).

There is already an issue in the ST Forum: https://community.st.com/s/question/0D53W00001JCSdaSAH/how-to-connect-stm32h745idisco-with-openocd-using-openocd-

src/jtag/drivers/stlink_usb.c: In function ‘stlink_dap_op_queue_run_internal’:
src/jtag/drivers/stlink_usb.c:4608:20: error: ‘misc_items’ error: ‘misc_items’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
ST-dot-com commented 2 years ago

This pull request has been refused, the Contribution License Agreement must be signed.