This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid a warning from clang when compiling Data::Dumper.
authorNicholas Clark <nick@ccl4.org>
Sat, 4 Feb 2012 09:34:57 +0000 (10:34 +0100)
committerNicholas 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

index afb2826..4b7af7c 100644 (file)
@@ -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