summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-20 13:46:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-20 15:18:13 +0900
commit4c93c124c29465e49343b47c935be99ad67a7d83 (patch)
treee68e2032f46193fc7ab58828d968c9cb97cec215 /gc.c
parent371bb4eaddf5d6d8aaab56173649da22378bbbae (diff)
Turned the reminder comment to a compile-time message
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index c70f8a35a7..fa4ab44712 100644
--- a/gc.c
+++ b/gc.c
@@ -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
}