We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the error case (else) of parse_mem_work, the variable i remains uninitialized and is used later-on. My compiler throws the following warning:
else
parse_mem_work
i
cc -c imx_loader_config.c -o imx_loader_config.o -pipe -ggdb -Wall -Wstrict-prototypes -Wno-trigraphs -DSYSCONFDIR='"/usr/etc"' -DREL_SYSCONFDIR='"../etc"' imx_loader_config.c:209:13: warning: variable 'i' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] } else if (strncmp(p, "modify", 6) == 0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ imx_loader_config.c:216:11: note: uninitialized use occurs here w.type = i; ^ imx_loader_config.c:209:9: note: remove the 'if' if its condition is always true } else if (strncmp(p, "modify", 6) == 0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imx_loader_config.c:196:16: note: initialize the variable 'i' to silence this warning unsigned int i; ^ = 0
See
imx_usb_loader/imx_loader_config.c
Line 216 in 29fa8ab
The text was updated successfully, but these errors were encountered:
You may want to close this: it got fixed later.
Sorry, something went wrong.
No branches or pull requests
In the error case (
else
) ofparse_mem_work
, the variablei
remains uninitialized and is used later-on. My compiler throws the following warning:See
imx_usb_loader/imx_loader_config.c
Line 216 in 29fa8ab
The text was updated successfully, but these errors were encountered: