summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-11-24 13:52:30 +0000
committerDavid Mitchell <davem@iabyn.com>2016-11-24 13:52:30 +0000
commit1cafb023c42b2724c2d2fe32a64b6fe43fe7f0c2 (patch)
tree4e6850414b6f505268437d95e7d962cf8d58f121 /ext
parente03e82a04dda6a44b815f3367c69afb0e953dc91 (diff)
downloadperl-1cafb023c42b2724c2d2fe32a64b6fe43fe7f0c2.tar.gz
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)
Diffstat (limited to 'ext')
-rw-r--r--ext/POSIX/POSIX.xs2
-rw-r--r--ext/POSIX/lib/POSIX.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 5c7d81a045..0bcebb1739 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 76d58c90df..e187b3b9eb 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;