diff options
| author | Daisuke Fujimura (fd0) <booleanlabel@gmail.com> | 2025-05-23 20:09:22 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-05-23 20:49:19 +0900 |
| commit | 70f8f7c4b11da8e237dc312a76ac49ebe0b66333 (patch) | |
| tree | 939f07d87bd6c7058a716482ad18f2825ef0acfd /thread.c | |
| parent | 966fcb77e48328baf28c1d042d8da25ba181f262 (diff) | |
Fix warning on cygwin
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13425
Diffstat (limited to 'thread.c')
| -rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1889,8 +1889,8 @@ rb_thread_mn_schedulable(VALUE thval) VALUE rb_thread_io_blocking_call(struct rb_io* io, rb_blocking_function_t *func, void *data1, int events) { - rb_execution_context_t * ec = GET_EC(); - rb_thread_t *th = rb_ec_thread_ptr(ec); + rb_execution_context_t * volatile ec = GET_EC(); + rb_thread_t * volatile th = rb_ec_thread_ptr(ec); RUBY_DEBUG_LOG("th:%u fd:%d ev:%d", rb_th_serial(th), io->fd, events); |
