X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=gv.c;h=0d34366e4ffc92c3f2f6cda33feb3ff181685b00;hb=d3b9c6891b7459d54058317f1c1f213e6a01409e;hp=1539ddd5242f32199e7adf50354b69af9aa42cb5;hpb=5bd07a3d26012a115fab327912ac8788755e1251;p=p5sagit%2Fp5-mst-13.2.git diff --git a/gv.c b/gv.c index 1539ddd..0d34366 100644 --- a/gv.c +++ b/gv.c @@ -125,7 +125,7 @@ Perl_gv_init(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, int multi) LEAVE; PL_sub_generation++; - CvGV(GvCV(gv)) = (GV*)SvREFCNT_inc(gv); + CvGV(GvCV(gv)) = gv; CvFILE(GvCV(gv)) = CopFILE(PL_curcop); CvSTASH(GvCV(gv)) = PL_curstash; #ifdef USE_THREADS @@ -1207,7 +1207,6 @@ Perl_Gv_AMupdate(pTHX_ HV *stash) { int filled = 0, have_ovl = 0; int i, lim = 1; - const char *cp; SV* sv = NULL; /* Work with "fallback" key, which we assume to be first in PL_AMG_names */ @@ -1279,7 +1278,7 @@ Perl_Gv_AMupdate(pTHX_ HV *stash) } } /* Here we have no table: */ - no_table: + /* no_table: */ AMT_AMAGIC_off(&amt); sv_magic((SV*)stash, 0, 'c', (char*)&amt, sizeof(AMTS)); return FALSE;