From 6bb35a1de4f6c769171a57dc5d832b5f2217d0c6 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Sun, 23 Mar 2025 11:45:45 -0400 Subject: [PATCH] Make ruby_autocompact_compare_func static It's not used outside of default.c. --- gc/default/default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc/default/default.c b/gc/default/default.c index 29e9bfdba2..7807f16e38 100644 --- a/gc/default/default.c +++ b/gc/default/default.c @@ -985,7 +985,7 @@ struct RZombie { static bool ruby_enable_autocompact = false; #if RGENGC_CHECK_MODE -gc_compact_compare_func ruby_autocompact_compare_func; +static gc_compact_compare_func ruby_autocompact_compare_func; #endif static void init_mark_stack(mark_stack_t *stack);