summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 23:52:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 23:52:40 +0000
commitd7de529996ac48512c027bf97bdbef475bd65b04 (patch)
treee9067c31c029af0f2b109ae7fdf7a439e192e5fa /vm_trace.c
parent2d4c2453cc3c277e7ea7e565300c26eeadda20e4 (diff)
vm_trace.c: suppress warnings
* vm_trace.c (rb_postponed_job_flush): suppress clobbered variable warnings on some gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 063bd82..a8ae1d3 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -1453,16 +1453,16 @@ rb_postponed_job_flush(rb_vm_t *vm)
int index = vm->postponed_job_index, old_index = index;
save.thread = cur_th;
+ save.index = index;
save.interrupt_mask = cur_th->interrupt_mask;
cur_th->interrupt_mask |= POSTPONED_JOB_INTERRUPT_MASK;
TH_PUSH_TAG(cur_th);
- if (EXEC_TAG()) {
- /* ignore all jumps, just continue */
- cur_th = save.thread;
- index = save.index;
- old_index = save.old_index;
- }
+ EXEC_TAG();
+ /* ignore all jumps, just continue */
+ cur_th = save.thread;
+ index = save.index;
+ old_index = save.old_index;
while (index > 0) {
rb_postponed_job_t *pjob = &vm->postponed_job_buffer[--index];
void *data = pjob->data;