]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - indirect.xs
Silence an "unused return value" warning
[perl/modules/indirect.git] / indirect.xs
index c90f3b67e0d63d539aeeb2358c9bef232bc38c05..b5e0675448331df025ad1a0c67db04dc3f6f0ceb 100644 (file)
@@ -140,13 +140,13 @@ STATIC void indirect_map_delete(pTHX_ const OP *o) {
 #define indirect_map_delete(O) indirect_map_delete(aTHX_ (O))
  OP2STR_BUF;
 
- hv_delete(indirect_map, buf, OP2STR(o), G_DISCARD);
(void)hv_delete(indirect_map, buf, OP2STR(o), G_DISCARD);
 }
 
 STATIC void indirect_map_clean_kids(pTHX_ const OP *o) {
 #define indirect_map_clean_kids(O) indirect_map_clean_kids(aTHX_ (O))
  if (o->op_flags & OPf_KIDS) {
-  const OP *kid = cUNOPo->op_first;
+  const OP *kid = ((const UNOP *) o)->op_first;
   for (; kid; kid = kid->op_sibling) {
    indirect_map_clean_kids(kid);
    indirect_map_delete(kid);
@@ -210,7 +210,7 @@ STATIC OP *indirect_ck_rv2sv(pTHX_ OP *o) {
   SV *sv;
   const char *name = NULL, *s;
   STRLEN len;
-  OPCODE type = op->op_type;
+  OPCODE type = (OPCODE) op->op_type;
 
   switch (type) {
    case OP_GV:
@@ -222,9 +222,9 @@ STATIC OP *indirect_ck_rv2sv(pTHX_ OP *o) {
    }
    default:
     if ((PL_opargs[type] & OA_CLASS_MASK) == OA_SVOP) {
-     SV *sv = cSVOPx_sv(op);
-     if (SvPOK(sv) && (SvTYPE(sv) >= SVt_PV))
-      name = SvPV_const(sv, len);
+     SV *nsv = cSVOPx_sv(op);
+     if (SvPOK(nsv) && (SvTYPE(nsv) >= SVt_PV))
+      name = SvPV_const(nsv, len);
     }
   }
   if (!name)