diff options
author | John Hawthorn <john@hawthorn.email> | 2021-12-26 19:50:46 -0800 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-29 08:57:34 +0900 |
commit | 38a3965dea1e811c7c1eebbc27b721e668b4d392 (patch) | |
tree | e2cbdd7ed5ec602108f8e80a98491d00297ef30f /yjit_iface.c | |
parent | 39b3aa4fb342974a92fda292f7cd5e077e5c764d (diff) |
YJIT: Fix warning in iface.c
Fixes warning:
<internal:yjit>:16: warning: undefining the allocator of T_DATA
class RubyVM::YJIT::Block
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5361
Diffstat (limited to 'yjit_iface.c')
-rw-r--r-- | yjit_iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit_iface.c b/yjit_iface.c index 6e72a2cc91..9240e3f1c9 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -1277,6 +1277,7 @@ rb_yjit_init(struct rb_yjit_options *options) // YJIT::Block (block version, code block) cYjitBlock = rb_define_class_under(mYjit, "Block", rb_cObject); + rb_undef_alloc_func(cYjitBlock); rb_define_method(cYjitBlock, "address", block_address, 0); rb_define_method(cYjitBlock, "id", block_id, 0); rb_define_method(cYjitBlock, "code", block_code, 0); |