Skip to content

Fix remaining strict compiler warnings - #1641

Open
Daniel Jump (DanielJump) wants to merge 3 commits into
microsoft:masterfrom
DanielJump:warnings-code-fixes
Open

Daniel Jump (DanielJump) wants to merge 3 commits into
microsoft:masterfrom
DanielJump:warnings-code-fixes

Conversation

@DanielJump

Copy link
Copy Markdown
Member

Summary

  • fix the remaining source and test diagnostics found by the strict-warning assessment
  • use the existing ABI cast helper while preserving constness until the final ABI pointer conversion
  • make enum, Boolean, weak-reference, aggregate-initialization, and PCH behavior explicit
  • keep warning policy and suppressions out of this change; those remain separate in Enable all warnings for cppwinrt CI #1640

Validation

  • x64 Debug solution build
  • combined x64 Debug /Wall /WX build on the local integration branch

Use safe ABI casts, explicit enum and Boolean handling, correct aggregate initialization, effective PCH ordering, and remove or annotate unused test helpers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8b45cfea-cc0f-4a1f-8b2a-86c89d063c6c
Hostname: DanJump0
Preserve constness through abi_cast and remove it only from the final ABI pointer, avoiding redundant implementation and base-class casts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8b45cfea-cc0f-4a1f-8b2a-86c89d063c6c
Hostname: DanJump0
Interpret the encoded high bit through intptr_t and test for a negative value instead of rebuilding and masking a pointer-sized flag.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8b45cfea-cc0f-4a1f-8b2a-86c89d063c6c
Hostname: DanJump0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant