PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Analyzers cpp turn on 4189

Open sosssego opened this issue 2 years ago • 0 comments

Turn on warning 4189, local variable is initialized but not referenced

PR Checklist

  • [x] Continues towards: #940
  • [x] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • [x] Tests: Added/updated and all pass - no new tests
  • [x] Localization: All end user facing strings can be localized - no new strings
  • [ ] Dev docs: Added/updated
  • [ ] New binaries: Added on the required places
  • [ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Turn on warning 4189, local variable is initialized but not referenced. Mos of the warnings were generated by creating a variable to get the result return from a function. the solution applied was deleting this variables, discarding whatever the function returns.

Validation Steps Performed

Unit Tests and CI

sosssego avatar Oct 28 '22 23:10 sosssego