This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use perl.h versions of PERL_UNUSED_foo in XSUB.h
authorKarl Williamson <khw@cpan.org>
Sat, 26 Dec 2020 15:44:08 +0000 (08:44 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 3 Jan 2021 15:36:01 +0000 (08:36 -0700)
commit036189b0a003875df7bf09c7f7fd702267f549e5
tree9467ef077d96b24ee92c3458e30a282b7dbaec3f
parent46033c991aa390e9da2bdb8c8005b6806d7bffdc
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.
XSUB.h