X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Magic.xs;h=183bfbd7521bfe193b2085d9b299315df5db4ef8;hb=990ac0f214d44bda5d26733979f647b855cb5702;hp=df86b33edfd7ee6dd994d48b6d87721fbac39800;hpb=a4e7b4c7ea392db794d6729cfeb792c445edcb06;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Magic.xs b/Magic.xs index df86b33..183bfbd 100644 --- a/Magic.xs +++ b/Magic.xs @@ -536,6 +536,8 @@ STATIC const SV *vmg_wizard_validate(pTHX_ const SV *wiz) { } croak(vmg_invalid_wiz); + /* Not reached */ + return NULL; } #define vmg_wizard_id(W) SvIVX((const SV *) (W)) @@ -871,7 +873,7 @@ STATIC void vmg_op_info_init(pTHX_ unsigned int opinfo) { if (!MY_CXT.b__op_stashes[0]) { opclass c; require_pv("B.pm"); - for (c = 0; c < OPc_MAX; ++c) + for (c = OPc_NULL; c < OPc_MAX; ++c) MY_CXT.b__op_stashes[c] = gv_stashpv(vmg_opclassnames[c], 1); } break; @@ -1316,7 +1318,7 @@ PPCODE: ud.owner = MY_CXT.owner; ptable_walk(MY_CXT.wizards, vmg_ptable_clone, &ud); - for (c = 0; c < OPc_MAX; ++c) { + for (c = OPc_NULL; c < OPc_MAX; ++c) { if (MY_CXT.b__op_stashes[c]) had_b__op_stash |= (((U32) 1) << c); } @@ -1325,7 +1327,7 @@ PPCODE: MY_CXT_CLONE; MY_CXT.wizards = t; MY_CXT.owner = aTHX; - for (c = 0; c < OPc_MAX; ++c) { + for (c = OPc_NULL; c < OPc_MAX; ++c) { MY_CXT.b__op_stashes[c] = (had_b__op_stash & (((U32) 1) << c)) ? gv_stashpv(vmg_opclassnames[c], 1) : NULL; }