1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Turned the reminder comment to a compile-time message

This commit is contained in:
Nobuyoshi Nakada 2021-08-20 13:46:19 +09:00
parent 371bb4eadd
commit 4c93c124c2
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

3
gc.c
View file

@ -2754,7 +2754,8 @@ rb_data_object_check(VALUE klass)
{
if (klass != rb_cObject && (rb_get_alloc_func(klass) == rb_class_allocate_instance)) {
rb_undef_alloc_func(klass);
#if 0 /* TODO: enable at the next release */
#if RUBY_VERSION_SINCE(3, 2)
RBIMPL_TODO("enable the warning at this release");
rb_warn("undefining the allocator of T_DATA class %"PRIsVALUE, klass);
#endif
}