You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this warning while building ffi 1.9.3 with the Devkit on Windows 7 with Ruby 2.0.0p247 (64-bit) and thought I should mention it:
Function.c: In function 'callback_invoke':
Function.c:479:9: warning: passing argument 1 of 'rb_thread_call_with_gvl' from incompatible pointer type [enabled by default]
Function.c:102:14: note: expected 'void * (*)(void *)' but argument is of type 'VALUE (*)(void *)'
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. The return value of rb_thread_call_with_gvl() was changed based on this discussion: http://bugs.ruby-lang.org/issues/5543
In FFI this return value is not used, but the function signature should be fixed. I'll do that.
The return type is not used but caused a compiler warning:
Function.c: In function 'callback_invoke':
Function.c:479:9: warning: passing argument 1 of 'rb_thread_call_with_gvl' from incompatible pointer type [enabled by default]
Function.c:102:14: note: expected 'void * (*)(void *)' but argument is of type 'VALUE (*)(void *)'
This addresses issue ffi#297.
ruby 2.0.0p247 (2013-06-27) [x64-mingw32]
I noticed this warning while building ffi 1.9.3 with the Devkit on Windows 7 with Ruby 2.0.0p247 (64-bit) and thought I should mention it:
The text was updated successfully, but these errors were encountered: