PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Analyzers cpp turn on 4127

Open sosssego opened this issue 2 years ago • 2 comments

Turn on warning 4127, conditional expression is constant

PR Checklist

  • [x] Continues towards: #x940
  • [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 4127 and changing 1 if expression to if constexpr

Validation Steps Performed

Unit Tests and CI

sosssego avatar Oct 28 '22 18:10 sosssego

Hi @sosssego , Build is failing. PTAL?

jaimecbernardo avatar Nov 09 '22 16:11 jaimecbernardo

Must've been caused by the merge. It's failing on main as well. Probably due to new code.

jaimecbernardo avatar Nov 09 '22 16:11 jaimecbernardo