diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-11-27 10:26:48 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-11-27 11:21:28 -0500 |
commit | 7fcb36d580fb98f5ddfe401b0f69fcdbf2f94d4c (patch) | |
tree | d9c07a772fc700571aa086b977a582229bcfea30 /mg.c | |
parent | 7fa99c80306db55ed2bd27d47315cbe599bdd10e (diff) | |
download | perl-7fcb36d580fb98f5ddfe401b0f69fcdbf2f94d4c.tar.gz |
hv_store_ent() return value unused.
mg.c: In function 'Perl_magic_setlvref':
mg.c:2549:2: warning: value computed is not used [-Wunused-value]
pp.c: In function 'Perl_pp_refassign':
pp.c:6263:2: warning: value computed is not used [-Wunused-value]
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2547,8 +2547,8 @@ Perl_magic_setlvref(pTHX_ SV *sv, MAGIC *mg) SvREFCNT_inc_simple_NN(SvRV(sv))); break; case SVt_PVHV: - hv_store_ent((HV *)mg->mg_obj, (SV *)mg->mg_ptr, - SvREFCNT_inc_simple_NN(SvRV(sv)), 0); + (void)hv_store_ent((HV *)mg->mg_obj, (SV *)mg->mg_ptr, + SvREFCNT_inc_simple_NN(SvRV(sv)), 0); } if (mg->mg_flags & MGf_PERSIST) NOOP; /* This sv is in use as an iterator var and will be reused, |