develooper Front page | perl.perl5.changes | Postings from January 2021

[Perl/perl5] 036189: Use perl.h versions of PERL_UNUSED_foo inXSUB.h

From:
Karl Williamson via perl5-changes
Date:
January 3, 2021 15:36
Subject:
[Perl/perl5] 036189: Use perl.h versions of PERL_UNUSED_foo inXSUB.h
Message ID:
Perl/perl5/push/refs/heads/blead/46033c-036189@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 036189b0a003875df7bf09c7f7fd702267f549e5
      https://github.com/Perl/perl5/commit/036189b0a003875df7bf09c7f7fd702267f549e5
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-01-03 (Sun, 03 Jan 2021)

  Changed paths:
    M XSUB.h

  Log Message:
  -----------
  Use perl.h versions of PERL_UNUSED_foo in XSUB.h

This commit was applied to perl.h, but not to XSUB.h:

commit a730e3f230f364cffe49370f816f975ae7c9c403
Author: Jarkko Hietaniemi <jhi@iki.fi>
Date:   Thu Sep 4 09:08:33 2014 -0400

Use sizeof() in UNUSED_ARG and UNUSED_VAR to avoid accessing the values.

The values might even be uninitialized in the case of PERL_UNUSED_VAR.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About