mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Suppress warnings
- `ractor_sync_terminate_atfork` is unused unless fork is working - `cr` in `vm_lock_leave` is only for debugging
This commit is contained in:
parent
edbd9ed468
commit
ec20f7feb6
2 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,7 @@ vm_lock_enter(rb_ractor_t *cr, rb_vm_t *vm, bool locked, bool no_barrier, unsign
|
|||
static void
|
||||
vm_lock_leave(rb_vm_t *vm, bool no_barrier, unsigned int *lev APPEND_LOCATION_ARGS)
|
||||
{
|
||||
rb_ractor_t *cr = vm->ractor.sync.lock_owner;
|
||||
MAYBE_UNUSED(rb_ractor_t *cr = vm->ractor.sync.lock_owner);
|
||||
|
||||
RUBY_DEBUG_LOG2(file, line, "rec:%u owner:%u%s", vm->ractor.sync.lock_rec,
|
||||
(unsigned int)rb_ractor_id(cr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue