diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-02-15 18:56:44 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-02-20 11:46:54 +0900 |
commit | 8920e2040a8980fdceeb9b629b0ef79fac380960 (patch) | |
tree | 0da99abb39be058b19c4ca12a89e2df6526de829 /vm.c | |
parent | c7e6dbd5ab488a42f2d1a8f3503480b92cd0aa88 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |