about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-07 20:13:13 +0000
committerEric Wong <mwrap-public@80x24.org>2023-01-07 21:56:16 +0000
commit2c25edb01139365f4754985c1e3494765dd1e5a7 (patch)
tree8b920ba046d2c1e097723eee19c1ff5b89e27006
parent40893ed4ddc5d92cce36ee951e9c7ae67b96f41a (diff)
downloadmwrap-2c25edb01139365f4754985c1e3494765dd1e5a7.tar.gz
This quiets `undefining the allocator of T_DATA class Mwrap::SourceLocation'
warnings.
-rw-r--r--ext/mwrap/mwrap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mwrap/mwrap.c b/ext/mwrap/mwrap.c
index 6875486..160007f 100644
--- a/ext/mwrap/mwrap.c
+++ b/ext/mwrap/mwrap.c
@@ -1115,6 +1115,7 @@ void Init_mwrap(void)
          * This class is only available since mwrap 2.0.0+.
          */
         cSrcLoc = rb_define_class_under(mod, "SourceLocation", rb_cObject);
+        rb_undef_alloc_func(cSrcLoc);
         rb_define_singleton_method(mod, "dump", mwrap_dump, -1);
         rb_define_singleton_method(mod, "reset", mwrap_reset, 0);
         rb_define_singleton_method(mod, "clear", mwrap_clear, 0);