From: Vincent Pit Date: Mon, 30 Nov 2009 21:14:16 +0000 (+0100) Subject: Fix compiler warnings with the Intel CC X-Git-Tag: v0.39~2 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=commitdiff_plain;h=990ac0f214d44bda5d26733979f647b855cb5702 Fix compiler warnings with the Intel CC --- 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; }