Skip to content

Change 5.45 added PERL_UNUSED_ARGs to new UNUSED scheme - #24801

Open
khwilliamson wants to merge 1 commit into
Perl:bleadfrom
khwilliamson:545_unused_arg
Open

khwilliamson wants to merge 1 commit into
Perl:bleadfrom
khwilliamson:545_unused_arg

Conversation

@khwilliamson

@khwilliamson khwilliamson commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

I didn't change the ones where it didn't make sense.

The new scheme has the advantage that on compilers that know about the attribute_nonnull modifier to parameters, it uses that, falling back to the equivalent of PERL_UNUSED_ARG on other compilers.

And the code is somewhat tidier.

And it addresses https://github.com/Perl/perl5/blob/blead/Porting/todo.pod#weed-out-needless-perl_unused_arg

  • This set of changes does not require a perldelta entry.

I didn't change the ones where it didn't make sense.

The new scheme has the advantage that on compilers that know about the
__attribute_nonnull__  modifier to parameters, it uses that, falling
back to the equivalent of PERL_UNUSED_ARG on other compilers.

And the code is somewhat tidier.
@khwilliamson
khwilliamson requested a review from leonerd September 8, 2026 17:55
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