From 708e839dee57bc5ef8f5b21fb4fa620e89caeb52 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Fri, 13 May 2022 20:24:05 +0100 Subject: [PATCH] Fix compiler warning when USE_RVARGC=0 --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index 8f4a32621b..1b3fcd2c67 100644 --- a/gc.c +++ b/gc.c @@ -5602,7 +5602,7 @@ gc_sweep_start(rb_objspace_t *objspace) rb_size_pool_t *size_pool = &size_pools[i]; rb_heap_t *heap = SIZE_POOL_EDEN_HEAP(size_pool); - gc_sweep_start_heap(objspace, SIZE_POOL_EDEN_HEAP(size_pool)); + gc_sweep_start_heap(objspace, heap); #if USE_RVARGC /* We should call gc_sweep_finish_size_pool for size pools with no pages. */