summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 20:07:26 +0900
committerGitHub <noreply@github.com>2021-06-03 20:07:26 +0900
commit93be7a4c6bda8269b3d82ce4cfde6b2bde3b9718 (patch)
tree52a775e732ea17297b48b60d8662d8f7f2d3cf0c /cont.c
parentdc25412042dcb921c27491ef09791d03bc377d98 (diff)
Suppress clobbered warnings on Travis-CI ppc64le-linux
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4550 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index bf540a183f..cb52fe8413 100644
--- a/cont.c
+++ b/cont.c
@@ -2041,7 +2041,6 @@ rb_fiber_start(void)
rb_proc_t *proc;
enum ruby_tag_type state;
int need_interrupt = TRUE;
- VALUE err = Qfalse;
VM_ASSERT(th->ec == GET_EC());
VM_ASSERT(FIBER_RESUMED_P(fiber));
@@ -2067,6 +2066,7 @@ rb_fiber_start(void)
}
EC_POP_TAG();
+ VALUE err = Qfalse;
if (state) {
err = th->ec->errinfo;
VM_ASSERT(FIBER_RESUMED_P(fiber));