summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-10-06 23:08:13 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-07 00:02:35 -0700
commit97021f77feddb8287b40e2a4f88a31003c22b986 (patch)
tree370765560eb5f1cd493e06aebec522cf2a9ece7c /gv.c
parentc60dbbc3880c0d4c4f81d95fb1d70b608f96a645 (diff)
downloadperl-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gv.c b/gv.c
index 2fd88acba2..edae04545b 100644
--- a/gv.c
+++ b/gv.c
@@ -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);