Skip to content

Ruby 3.2 warning: undefining the allocator of T_DATA class TinyTds::Result #515

Closed
@jeremyevans

Description

@jeremyevans

When running tiny_tds on Ruby 3.2.0-preview 1, you get a warning when first accessing the TinyTds::Result class:

warning: undefining the allocator of T_DATA class TinyTds::Result

You can probably avoid this by adding rb_undef_alloc_func(cTinyTdsResult); after

cTinyTdsResult = rb_define_class_under(mTinyTds, "Result", rb_cObject);

For details, see https://bugs.ruby-lang.org/issues/18007 and https://ruby-doc.org/core-3.1.1/doc/extension_rdoc.html#label-C+struct+to+Ruby+object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions