Skip to content

Commit fa8f5cd

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/libxml/ruby_xml_attr_decl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ VALUE rxml_attr_decl_value_get(VALUE self)
143143
void rxml_init_attr_decl(void)
144144
{
145145
cXMLAttrDecl = rb_define_class_under(mXML, "AttrDecl", rb_cObject);
146+
rb_undef_alloc_func(cXMLAttrDecl);
146147
rb_define_method(cXMLAttrDecl, "doc", rxml_attr_decl_doc_get, 0);
147148
rb_define_method(cXMLAttrDecl, "name", rxml_attr_decl_name_get, 0);
148149
rb_define_method(cXMLAttrDecl, "next", rxml_attr_decl_next_get, 0);

0 commit comments

Comments
 (0)