Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

= Revision history for ruby-filemagic

== Unreleased []

* Remove Warning 'warning: undefining the allocator of T_DATA class FileMagic'

== 0.7.3 [2022-01-07]

* Dockerfile to build native extension (pull request #26 by Pavel Lobashov).
Expand Down
1 change: 1 addition & 0 deletions ext/filemagic/filemagic.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ void
Init_ruby_filemagic() {
char version[8] = "0";
cFileMagic = rb_define_class("FileMagic", rb_cObject);
rb_undef_alloc_func(cFileMagic);

#if defined(FILE_VERSION_MAJOR)
RB_MAGIC_SET_VERSION(FILE_VERSION_MAJOR, patchlevel)
Expand Down