Skip to content

Commit

Permalink
Fix ev_backend_poll so that it doesn't generate warnings.
Browse files Browse the repository at this point in the history
`rb_thread_call_without_gvl` expects return type `void*`. Fixes #220.
  • Loading branch information
ioquatix committed Sep 24, 2019
1 parent 0e82096 commit a0b368f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/libev/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3628,11 +3628,13 @@ struct ev_poll_args {
};

static
VALUE ev_backend_poll(void *ptr)
void * ev_backend_poll(void *ptr)
{
struct ev_poll_args *args = (struct ev_poll_args *)ptr;
struct ev_loop *loop = args->loop;
backend_poll (EV_A_ args->waittime);

return NULL;
}
/* ######################################## */

Expand Down

0 comments on commit a0b368f

Please sign in to comment.