Suppress -Wclobbered warning for BLOCKING_REGION

This commit is contained in:
Nobuyoshi Nakada 2024-06-01 16:25:12 +09:00
parent a720a1c447
commit c05f60a600
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -1541,10 +1541,12 @@ rb_nogvl(void *(*func)(void *), void *data1,
}
}
rb_vm_t *volatile saved_vm = vm;
BLOCKING_REGION(th, {
val = func(data1);
saved_errno = rb_errno();
}, ubf, data2, flags & RB_NOGVL_INTR_FAIL);
vm = saved_vm;
if (is_main_thread) vm->ubf_async_safe = 0;