summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-06-22 04:41:00 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-23 08:39:44 +0000
commit1b6737cc10a847650f574c35f419cbd680a5a5ef (patch)
treeb96d16d5faf3db00f9c9488a814c8a8d6a217387 /pp_ctl.c
parent89e33a0587050e7ef2e88ba45c87444d8506f821 (diff)
downloadperl-1b6737cc10a847650f574c35f419cbd680a5a5ef.tar.gz
Const Boy II: The Localizing
Message-ID: <20050622144059.GA19598@petdance.com> p4raw-id: //depot/perl@24945
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 94a3f31ab6..e27d637a76 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1374,6 +1374,7 @@ Perl_dounwind(pTHX_ I32 cxix)
}
cxstack_ix--;
}
+ PERL_UNUSED_VAR(optype);
}
void
@@ -2068,6 +2069,7 @@ PP(pp_last)
dounwind(cxix);
POPBLOCK(cx,newpm);
+ PERL_UNUSED_VAR(optype);
cxstack_ix++; /* temporarily protect top context */
mark = newsp;
switch (CxTYPE(cx)) {
@@ -2380,6 +2382,9 @@ PP(pp_goto)
PUSHMARK(mark);
PUTBACK;
(void)(*CvXSUB(cv))(aTHX_ cv);
+ /* Put these at the bottom since the vars are set but not used */
+ PERL_UNUSED_VAR(newsp);
+ PERL_UNUSED_VAR(gimme);
}
LEAVE;
return retop;
@@ -2857,7 +2862,7 @@ Perl_find_runcv(pTHX_ U32 *db_seqp)
for (ix = si->si_cxix; ix >= 0; ix--) {
const PERL_CONTEXT *cx = &(si->si_cxstack[ix]);
if (CxTYPE(cx) == CXt_SUB || CxTYPE(cx) == CXt_FORMAT) {
- CV *cv = cx->blk_sub.cv;
+ CV * const cv = cx->blk_sub.cv;
/* skip DB:: code */
if (db_seqp && PL_debstash && CvSTASH(cv) == PL_debstash) {
*db_seqp = cx->blk_oldcop->cop_seq;