Skip to content

Commit 07d172e

Browse files
committed
Fix "warning: undefining the allocator of T_DATA class LibXML::XML::Schema::Type"
Ref: https://github.com/xml4r/libxml-ruby/actions/runs/6304624267/job/17116348643#step:5:197
1 parent f9e09a4 commit 07d172e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/libxml/ruby_xml_schema_type.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ void rxml_init_schema_type(void)
237237
#endif
238238

239239
cXMLSchemaType = rb_define_class_under(cXMLSchema, "Type", rb_cObject);
240+
rb_undef_alloc_func(cXMLSchemaType);
240241

241242
rb_define_attr(cXMLSchemaType, "namespace", 1, 0);
242243
rb_define_attr(cXMLSchemaType, "name", 1, 0);

0 commit comments

Comments
 (0)