Skip to content

Commit

Permalink
Fix "warning: undefining the allocator of T_DATA class LibXML::XML::S…
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Oct 22, 2023
1 parent 454229f commit f9e09a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/libxml/ruby_xml_schema_attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ static VALUE rxml_schema_attribute_node(VALUE self)
void rxml_init_schema_attribute(void)
{
cXMLSchemaAttribute = rb_define_class_under(cXMLSchema, "Attribute", rb_cObject);
rb_undef_alloc_func(cXMLSchemaAttribute);
rb_define_attr(cXMLSchemaAttribute, "name", 1, 0);
rb_define_attr(cXMLSchemaAttribute, "type", 1, 0);
rb_define_attr(cXMLSchemaAttribute, "namespace", 1, 0);
Expand Down

0 comments on commit f9e09a4

Please sign in to comment.