diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-12-28 13:54:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-12-30 21:13:11 +0900 |
commit | db547a3bc457e55c07880ae5d2d77f55b93775eb (patch) | |
tree | e793f897f73954944d5c1596a35bc689b477f18e /ext/win32ole/win32ole_variable.c | |
parent | 31c69d66d2200566695a0c88dd68cdd04a77614d (diff) |
[ruby/win32ole] Undefine allocator of WIN32OLE_VARIABLE to get rid of warning
https://github.com/ruby/win32ole/commit/27d0fdc622
Diffstat (limited to 'ext/win32ole/win32ole_variable.c')
-rw-r--r-- | ext/win32ole/win32ole_variable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/win32ole/win32ole_variable.c b/ext/win32ole/win32ole_variable.c index 803083156c..8d80455d97 100644 --- a/ext/win32ole/win32ole_variable.c +++ b/ext/win32ole/win32ole_variable.c @@ -370,6 +370,7 @@ VALUE cWIN32OLE_VARIABLE; void Init_win32ole_variable(void) { cWIN32OLE_VARIABLE = rb_define_class("WIN32OLE_VARIABLE", rb_cObject); + rb_undef_alloc_func(cWIN32OLE_VARIABLE); rb_define_method(cWIN32OLE_VARIABLE, "name", folevariable_name, 0); rb_define_method(cWIN32OLE_VARIABLE, "ole_type", folevariable_ole_type, 0); rb_define_method(cWIN32OLE_VARIABLE, "ole_type_detail", folevariable_ole_type_detail, 0); |