This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
141c2ca
)
Avoid a warning from clang when compiling Data::Dumper.
author
Nicholas Clark
<nick@ccl4.org>
Sat, 4 Feb 2012 09:34:57 +0000
(10:34 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Sat, 4 Feb 2012 09:34:57 +0000
(10:34 +0100)
There are other similar casts to void elsewhere in Dumper.xs
dist/Data-Dumper/Dumper.xs
patch
|
blob
|
blame
|
history
diff --git
a/dist/Data-Dumper/Dumper.xs
b/dist/Data-Dumper/Dumper.xs
index
afb2826
..
4b7af7c
100644
(file)
--- a/
dist/Data-Dumper/Dumper.xs
+++ b/
dist/Data-Dumper/Dumper.xs
@@
-651,7
+651,7
@@
DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
(void)hv_iterinit((HV*)ival);
while ((entry = hv_iternext((HV*)ival))) {
sv = hv_iterkeysv(entry);
- SvREFCNT_inc(sv);
+
(void)
SvREFCNT_inc(sv);
av_push(keys, sv);
}
# ifdef USE_LOCALE_NUMERIC