diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-10-06 23:08:13 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-10-07 00:02:35 -0700 |
commit | 97021f77feddb8287b40e2a4f88a31003c22b986 (patch) | |
tree | 370765560eb5f1cd493e06aebec522cf2a9ece7c /gv.c | |
parent | c60dbbc3880c0d4c4f81d95fb1d70b608f96a645 (diff) | |
download | perl-97021f77feddb8287b40e2a4f88a31003c22b986.tar.gz |
Suppress some uninit warnings in gv.c:S_maybe_add_coresub
Suprisingly, gcc figured out that these were never used uninitialised
when I had the body of this function as part of gv_fetchpvn_flags, but
now it has trouble recognising that fact.
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -447,13 +447,13 @@ S_maybe_add_coresub(pTHX_ HV * const stash, GV *gv, { const int code = keyword(name, len, 1); static const char file[] = __FILE__; - CV *cv, *oldcompcv; + CV *cv, *oldcompcv = NULL; int opnum = 0; SV *opnumsv; bool ampable = TRUE; /* &{}-able */ - COP *oldcurcop; - yy_parser *oldparser; - I32 oldsavestack_ix; + COP *oldcurcop = NULL; + yy_parser *oldparser = NULL; + I32 oldsavestack_ix = 0; assert(gv || stash); assert(name); |