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

Fix -Wpointer-type-mismatch warning #17453

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jan 12, 2025

GetProcAddress() returns a FARPROC (aka. long long (*)()) which is not compatible with void * per the specs. However, on Windows they are, so we silence the warning with a cast.

`GetProcAddress()` returns a `FARPROC` (aka. `long long (*)()`) which
is not compatible with `void *` per the specs.  However, on Windows
they are, so we silence the warning with a cast.
@cmb69 cmb69 merged commit 788128a into php:master Jan 13, 2025
10 checks passed
@cmb69 cmb69 deleted the cmb/farproc-cast branch January 13, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants