From 8b22fd27f181ea1902bbb584b41488e307121587 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 4 Jun 2020 17:06:10 +0900 Subject: [PATCH] Moved vm_empty_cc to local in vm.c [Bug #16934] As it is referenced only from compile.c, except for MJIT, simply use the accessor function. --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm.c b/vm.c index fb065f5c47..f2c45f3bab 100644 --- a/vm.c +++ b/vm.c @@ -386,7 +386,7 @@ rb_serial_t ruby_vm_global_method_state = 1; rb_serial_t ruby_vm_global_constant_state = 1; rb_serial_t ruby_vm_class_serial = 1; -const struct rb_callcache *vm_empty_cc; +static const struct rb_callcache *vm_empty_cc; static void thread_free(void *ptr);