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

tool_operate: Fix warning potentially uninitialized local variable 'pc' used #14389

Closed
wants to merge 2 commits into from

Conversation

talregev
Copy link
Contributor

@talregev talregev commented Aug 4, 2024

From changes here:
#13988

Fix warning:
c:\projects\curl\src\tool_operhlp.c(215): error C2220: warning treated as error - no 'object' file generated [C:\projects\curl_bld\src\curl.vcxproj]
c:\projects\curl\src\tool_operhlp.c(215): warning C4701: potentially uninitialized local variable 'pc' used [C:\projects\curl_bld\src\curl.vcxproj]
https://ci.appveyor.com/project/curlorg/curl/builds/50343057/job/ljcb0k5njpuh7w2v

@bagder
Copy link
Member

bagder commented Aug 4, 2024

A false positive. But while there, can't you move the declaration into the smallest possible scope?

@talregev
Copy link
Contributor Author

talregev commented Aug 4, 2024

Done.

@bagder bagder closed this in 781c14c Aug 5, 2024
@bagder
Copy link
Member

bagder commented Aug 5, 2024

Thanks!

@talregev talregev deleted the TalR/init_pc_vars branch August 5, 2024 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants