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:
Nobuyoshi Nakada 2025-06-22 01:08:38 +09:00
parent edbd9ed468
commit ec20f7feb6
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
2 changed files with 3 additions and 1 deletions

View file

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