1
0
Fork 0
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:
Nobuyoshi Nakada 2021-11-28 17:45:55 +09:00
parent ca7de49aa5
commit 4a09b7de06
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

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