From: Florian Ragwitz Date: Wed, 4 Feb 2009 22:04:23 +0000 (+0100) Subject: Get rid of a warning produced by -Wunused-value. X-Git-Tag: v0.07~9 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=f00fcddb3be61894deea2885620e3acc6967e5c0;p=perl%2Fmodules%2FScope-Upper.git Get rid of a warning produced by -Wunused-value. --- diff --git a/Upper.xs b/Upper.xs index d628f1d..367658c 100644 --- a/Upper.xs +++ b/Upper.xs @@ -247,7 +247,7 @@ STATIC void su_save_helem(pTHX_ HV *hv, SV *keysv, SV *val) { if (val) { /* local $x{$keysv} = $val; */ SvSetMagicSV(*svp, val); } else { /* local $x{$keysv}; delete $x{$keysv}; */ - hv_delete_ent(hv, keysv, G_DISCARD, HeHASH(he)); + (void)hv_delete_ent(hv, keysv, G_DISCARD, HeHASH(he)); } }