summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-11-27 10:26:48 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-11-27 11:21:28 -0500
commit7fcb36d580fb98f5ddfe401b0f69fcdbf2f94d4c (patch)
treed9c07a772fc700571aa086b977a582229bcfea30 /mg.c
parent7fa99c80306db55ed2bd27d47315cbe599bdd10e (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 27c276249a..be26512100 100644
--- a/mg.c
+++ b/mg.c
@@ -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,