summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-07-22 23:21:49 +0100
committerDavid Mitchell <davem@iabyn.com>2016-07-22 23:21:49 +0100
commit51787acf7725ae7cd885f261996c34c0c59a0a3e (patch)
treefbc03ceb4b18094c4d259ccabe6d1de11e6776ec /pp_ctl.c
parentc058d55cdd578aa02d7f4672d43db43adc7b5a9f (diff)
downloadperl-51787acf7725ae7cd885f261996c34c0c59a0a3e.tar.gz
S_pop_eval_context_maybe_croak: silence warning
g++ is too dumb to notice that in SV *s; if (foo) s = ...; ...; if (foo) ...do something with s...; s can't be used uninitialised.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 5a66e267a7..155349edd7 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1598,7 +1598,7 @@ Perl_qerror(pTHX_ SV *err)
static void
S_pop_eval_context_maybe_croak(pTHX_ PERL_CONTEXT *cx, SV *errsv, int action)
{
- SV *namesv;
+ SV *namesv = NULL; /* init to avoid dumb compiler warning */
bool do_croak;
CX_LEAVE_SCOPE(cx);