Skip to content

Silence inconsequential warnings in win32/perlhost.h. #22006

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

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

sisyphus
Copy link
Contributor

I don't know why these functions that are emitting the warnings are even declared in perlhost.h.
And I don't know why they insist on taking an unused arg.
Maybe there's a better approach to silencing these warnings than the one I have chosen.

Anyway, they silence the warnings for me, and don't break anything in the process (AFAICS).
Hopefully, the CI tests will confirm this.

@jkeenan jkeenan added type-win32build build issue on Win32 build-time-warnings Replaces [META] Build-time warnings RT #133556 labels Feb 19, 2024
@tonycoz
Copy link
Contributor

tonycoz commented Feb 19, 2024

These functions are all called via a table of function pointers, and the callers supply that first parameter.

They aren't used currently in perl, but that could change in the future, it's possible they're used by the ActivePerl ISAPI plugin.

@khwilliamson khwilliamson merged commit 6645737 into Perl:blead Feb 19, 2024
@sisyphus sisyphus deleted the silence_more_win32_warnings branch February 20, 2024 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-time-warnings Replaces [META] Build-time warnings RT #133556 type-win32build build issue on Win32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants