Skip to content

Commit 454229f

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/libxml/ruby_xml_schema_element.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ static VALUE rxml_schema_element_annot(VALUE self)
5959
void rxml_init_schema_element(void)
6060
{
6161
cXMLSchemaElement = rb_define_class_under(cXMLSchema, "Element", rb_cObject);
62+
rb_undef_alloc_func(cXMLSchemaElement);
6263
rb_define_attr(cXMLSchemaElement, "name", 1, 0);
6364
rb_define_attr(cXMLSchemaElement, "value", 1, 0);
6465
rb_define_attr(cXMLSchemaElement, "namespace", 1, 0);

0 commit comments

Comments
 (0)