1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Antonio Terceiro <terceiro@debian.org>
Date: Mon, 27 Jan 2025 10:40:52 +0100
Subject: xmlparser.c: undefine allocator function for XMLParser
This fixes the module for RUby 3.2+ and avoids the following warning
from apt-listbugs/ruby-soap4r:
warning: undefining the allocator of T_DATA class XSD::XMLParser::XMLParser::Listener
Link:://bugs.ruby-lang.org/issues/18007
Link: https://github.com/ruby/ruby/pull/4604
---
xmlparser.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xmlparser.c b/xmlparser.c
index fb17935..1c174a9 100644
--- a/xmlparser.c
+++ b/xmlparser.c
@@ -2147,6 +2147,7 @@ Init_xmlparser()
eXMLParserError = rb_define_class("XMLParserError", rb_eStandardError);
cXMLParser = rb_define_class("XMLParser", rb_cObject);
+ rb_undef_alloc_func(cXMLParser);
cXMLEncoding = rb_define_class("XMLEncoding", rb_cObject);
/* Class name aliases */
|