In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/1cafb023c42b2724c2d2fe32a64b6fe43fe7f0c2?hp=e03e82a04dda6a44b815f3367c69afb0e953dc91>

- Log -----------------------------------------------------------------
commit 1cafb023c42b2724c2d2fe32a64b6fe43fe7f0c2
Author: David Mitchell <[email protected]>
Date:   Thu Nov 24 13:52:30 2016 +0000

    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)
-----------------------------------------------------------------------

Summary of changes:
 ext/POSIX/POSIX.xs     | 2 +-
 ext/POSIX/lib/POSIX.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 5c7d81a..0bcebb1 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -3451,7 +3451,7 @@ strtoul(str, base = 0)
        int             base
     PREINIT:
        unsigned long num;
-       char *unparsed;
+       char *unparsed = NULL;
     PPCODE:
        PERL_UNUSED_VAR(str);
        PERL_UNUSED_VAR(base);
diff --git a/ext/POSIX/lib/POSIX.pm b/ext/POSIX/lib/POSIX.pm
index 76d58c9..e187b3b 100644
--- a/ext/POSIX/lib/POSIX.pm
+++ b/ext/POSIX/lib/POSIX.pm
@@ -4,7 +4,7 @@ use warnings;
 
 our ($AUTOLOAD, %SIGRT);
 
-our $VERSION = '1.75';
+our $VERSION = '1.76';
 
 require XSLoader;
 

--
Perl5 Master Repository

Reply via email to