This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid compiler warnings
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 13 Mar 2000 11:00:00 +0000 (11:00 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 13 Mar 2000 11:00:00 +0000 (11:00 +0000)
p4raw-id: //depot/perl@5701

pp_hot.c

index 3b13176..237bb01 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -653,7 +653,7 @@ S_do_maybe_phash(pTHX_ AV *ary, SV **lelem, SV **firstlelem, SV **relem,
            sv_setsv(tmpstr,relem[1]);  /* value */
            relem[1] = tmpstr;
            if (avhv_store_ent(ary,relem[0],tmpstr,0))
-               SvREFCNT_inc(tmpstr);
+               (void)SvREFCNT_inc(tmpstr);
            if (SvMAGICAL(ary) != 0 && SvSMAGICAL(tmpstr))
                mg_set(tmpstr);
            relem += 2;
@@ -687,7 +687,7 @@ S_do_oddball(pTHX_ HV *hash, SV **relem, SV **firstrelem)
            /* pseudohash */
            tmpstr = sv_newmortal();
            if (avhv_store_ent((AV*)hash,*relem,tmpstr,0))
-               SvREFCNT_inc(tmpstr);
+               (void)SvREFCNT_inc(tmpstr);
            if (SvMAGICAL(hash) && SvSMAGICAL(tmpstr))
                mg_set(tmpstr);
        }