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

Prevent -Wcast-function-type-mismatch diagnostics from clang #1301

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

ZacharyHenkel
Copy link
Member

-Wcast-function-type-mismatch is a new diagnostic issued by clang 19. Add an additional cast to silence the diagnostic. The underlying issue is that GetProcAddress unconditionally returns FARPROC instead of matching the real function signature.

Copy link
Contributor

@mkoscumb mkoscumb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ThomsonTan ThomsonTan merged commit 324eb39 into main Sep 12, 2024
20 of 24 checks passed
@ThomsonTan ThomsonTan deleted the ZacharyHenkel/clang19compat branch September 12, 2024 18:52
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.

5 participants