summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-15 18:56:44 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-20 11:46:54 +0900
commit8920e2040a8980fdceeb9b629b0ef79fac380960 (patch)
tree0da99abb39be058b19c4ca12a89e2df6526de829 /vm.c
parentc7e6dbd5ab488a42f2d1a8f3503480b92cd0aa88 (diff)
downloadruby-8920e2040a8980fdceeb9b629b0ef79fac380960.tar.gz
hide vm_ep_in_heap_p_
`make leaked-globals` points out that this function is leaked. This has not been detected in our CI because it is defined only when VM_CHECK_MODE is nonzero. Just make it static and everytihng goes well.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 8c7abb3599..bf60f91f89 100644
--- a/vm.c
+++ b/vm.c
@@ -156,7 +156,7 @@ VM_EP_IN_HEAP_P(const rb_execution_context_t *ec, const VALUE *ep)
}
}
-int
+static int
vm_ep_in_heap_p_(const rb_execution_context_t *ec, const VALUE *ep)
{
if (VM_EP_IN_HEAP_P(ec, ep)) {