ITADN

native extension failing on ruby 3.1.4

#90Closedjakswa 创建于 2025-05-12
J
jakswacommented
A faster solution for me here might be figuring out a ruby version update, but thought i'd fire this off in case i'm not alone or it is surprising or worth fixing. ``` 3.1.4/include/ruby-3.1.0/ruby/internal/anyargs.h:287:135: error: passing argument 3 of ‘rb_define_method_m3’ from incompatible pointer type [-Wincompatible-pointer-types] 287 | #define rb_define_method(klass, mid, func, arity) RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity)) | ^~~~~~ | | | __attribute__((noreturn)) VALUE (*)(int, const VALUE *, VALUE, VALUE) {aka __attribute__((noreturn)) long unsigned int (*)(int, const long unsigned int *, long unsigned int, long unsigned int)} console.c:1945:5: note: in expansion of macro ‘rb_define_method’ 1945 | rb_define_method(rb_cIO, "pressed?", console_key_pressed_p, 1); | ^~~~~~~~~~~~~~~~ ```
关闭于 2025-08-22 8 条评论