Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type of callback function to rb_thread_call_with_gvl(). #309

Merged
merged 1 commit into from Jun 6, 2014

Conversation

larskanis
Copy link
Member

The return value 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 #297.

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.
tduehr added a commit that referenced this pull request Jun 6, 2014
Fix return type of callback function to rb_thread_call_with_gvl().
@tduehr tduehr merged commit b0a42bb into ffi:master Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants