mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress address-of-packed-member warning by gcc
This commit is contained in:
parent
ca7de49aa5
commit
4a09b7de06
1 changed files with 3 additions and 1 deletions
|
@ -1011,7 +1011,9 @@ queue_do_pop(VALUE self, struct rb_queue *q, int should_block)
|
|||
.as = {.q = q}
|
||||
};
|
||||
|
||||
list_add_tail(queue_waitq(queue_waiter.as.q), &queue_waiter.w.node);
|
||||
struct list_head *waitq = queue_waitq(q);
|
||||
|
||||
list_add_tail(waitq, &queue_waiter.w.node);
|
||||
queue_waiter.as.q->num_waiting++;
|
||||
|
||||
rb_ensure(queue_sleep, self, queue_sleep_done, (VALUE)&queue_waiter);
|
||||
|
|
Loading…
Reference in a new issue