summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-13 21:48:53 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-13 21:48:53 -0400
commitb57b04d533ba5d71576359062a3470c22080f76d (patch)
tree41acee35d9a43f0be44c9d08336590f242d3f362 /pp_ctl.c
parent8c2b19724d117cecfa186d044abdbf766372c679 (diff)
downloadperl-b57b04d533ba5d71576359062a3470c22080f76d.tar.gz
Revert "Some low-hanging -Wunreachable-code fruits."
This reverts commit 8c2b19724d117cecfa186d044abdbf766372c679. I don't understand - smoke-me came back happy with three separate reports... oh well, some other time.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 8957a8ceed..ab729b0334 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1357,8 +1357,9 @@ Perl_block_gimme(pTHX)
return G_ARRAY;
default:
Perl_croak(aTHX_ "panic: bad gimme: %d\n", cxstack[cxix].blk_gimme);
+ assert(0); /* NOTREACHED */
+ return 0;
}
- NOT_REACHED; /* NOTREACHED */
}
I32
@@ -4335,8 +4336,8 @@ PP(pp_leaveeval)
SvPVX_const(namesv),
SvUTF8(namesv) ? -(I32)SvCUR(namesv) : (I32)SvCUR(namesv),
G_DISCARD);
- Perl_die(aTHX_ "%"SVf" did not return a true value", SVfARG(namesv));
- NOT_REACHED; /* NOTREACHED */
+ retop = Perl_die(aTHX_ "%"SVf" did not return a true value",
+ SVfARG(namesv));
/* die_unwind() did LEAVE, or we won't be here */
}
else {