diff options
author | David Mitchell <davem@iabyn.com> | 2016-07-22 23:21:49 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-07-22 23:21:49 +0100 |
commit | 51787acf7725ae7cd885f261996c34c0c59a0a3e (patch) | |
tree | fbc03ceb4b18094c4d259ccabe6d1de11e6776ec /pp_ctl.c | |
parent | c058d55cdd578aa02d7f4672d43db43adc7b5a9f (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |