Skip to content

Commit b40a982

Browse files
committed
Fix "warning: undefining the allocator of T_DATA class LibXML::XML::Attributes"
Ref: https://github.com/xml4r/libxml-ruby/actions/runs/6304624267/job/17116348643#step:5:44
1 parent c7b46b0 commit b40a982

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/libxml/ruby_xml_attributes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ static VALUE rxml_attributes_first(VALUE self)
263263
void rxml_init_attributes(void)
264264
{
265265
cXMLAttributes = rb_define_class_under(mXML, "Attributes", rb_cObject);
266+
rb_undef_alloc_func(cXMLAttributes);
266267
rb_include_module(cXMLAttributes, rb_mEnumerable);
267268
rb_define_method(cXMLAttributes, "node", rxml_attributes_node_get, 0);
268269
rb_define_method(cXMLAttributes, "get_attribute", rxml_attributes_get_attribute, 1);

0 commit comments

Comments
 (0)