Skip to content

Commit 3bbc2a0

Browse files
committed
Unlock GVL callback should be void *(*)(void *)
I use strict compiler flags on my version of Ruby. Since the callback signature didn't match correctly, compilation would fail. This fixes the nogvl callback signature.
1 parent 33873e5 commit 3bbc2a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/rugged/rugged_diff.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,14 @@ struct nogvl_diff_patch_args {
204204
VALUE rb_str;
205205
};
206206

207-
static void rb_git_diff_patch_nogvl(void * _args)
207+
static void * rb_git_diff_patch_nogvl(void * _args)
208208
{
209209
struct nogvl_diff_patch_args * args;
210210

211211
args = (struct nogvl_diff_patch_args *)_args;
212212
git_diff_print(args->diff, args->format, diff_print_cb, (void*) args->rb_str);
213+
214+
return NULL;
213215
}
214216

215217
/*

0 commit comments

Comments
 (0)