From d7de529996ac48512c027bf97bdbef475bd65b04 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 Oct 2013 23:52:40 +0000 Subject: 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 --- vm_trace.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vm_trace.c') diff --git a/vm_trace.c b/vm_trace.c index 063bd828ff..a8ae1d3795 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; -- cgit v1.2.3