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

Avoid using incompatible pointer type for old_warn #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrstphrchvz
Copy link
Contributor

@chrstphrchvz chrstphrchvz commented Feb 19, 2024

See #98 (comment): Newer compilers may have -Werror=incompatible-pointer-types by default. PL_curcop->cop_warnings previously had type SV *, then STRLEN *, and now char * as of Perl 5.37.6. Since old_warn is only used to temporarily hold the value from PL_curcop->cop_warnings without dereferencing it, old_warn can instead be declared as void * regardless of Perl 5 version.

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