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:
parent
2d4c2453cc
commit
d7de529996
1 changed files with 6 additions and 6 deletions
12
vm_trace.c
12
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue