-
Notifications
You must be signed in to change notification settings - Fork 99
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
Initialize bool type member variables #329
base: main
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Could you do a single PR for all prefast issues? This is getting very noisy for me. |
Will do! I was grouping them by the warnings. We just had another new one come in, I will ping you once I add a fix for that one as well. |
In the past we usually just fixed everything. Otherwise it's so much more work for the dev and reviewer(s). |
I realized the new bug is actually for vsixbootstrapper repo, so this PR would be the last one in vswhere for now. We have one last binskim bug to fix in this repo, but the estimated time is longer so we would like to get this one reviewed first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a dubious warning, but I appreciate your position of having to fix this anyway.
What
Fix C26495 warning flagged by Prefast
Why
Stay compliant with the C++ Core Guidelines and improve code safety by initializing bool type member variables
How
Initialize bool type member variables
Testing
Added unit test for default values