1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-10-10 23:52:40 +00:00
parent 2d4c2453cc
commit d7de529996

View file

@ -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()) {
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;