Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stlink_usb.c #13

Conversation

domologic
Copy link

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]

Initialize misc_items variable
@ST-dot-com
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants