This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
POSIX.pm: shut up g++ compiler warning
authorDavid Mitchell <davem@iabyn.com>
Thu, 24 Nov 2016 13:52:30 +0000 (13:52 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 24 Nov 2016 13:52:30 +0000 (13:52 +0000)
commit1cafb023c42b2724c2d2fe32a64b6fe43fe7f0c2
tree4e6850414b6f505268437d95e7d962cf8d58f121
parente03e82a04dda6a44b815f3367c69afb0e953dc91
POSIX.pm: shut up g++ compiler warning

g++ is too stupid to know that strtoul(..,&unparsed,...) will modify
unparsed. So initialise it to NULL.

POSIX.xs: In function ‘void XS_POSIX_strtoul(PerlInterpreter*, CV*)’:
POSIX.xs:3468:17: warning: ‘unparsed’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                 if (unparsed)
ext/POSIX/POSIX.xs
ext/POSIX/lib/POSIX.pm