Skip to content
Snippets Groups Projects
Commit 6f4f02cf authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Slightly better workaround given the circumstances.

parent b5b62720
Branches
Tags
No related merge requests found
...@@ -269,8 +269,7 @@ static void Init_grpc_time_consts() { ...@@ -269,8 +269,7 @@ static void Init_grpc_time_consts() {
id_tv_nsec = rb_intern("tv_nsec"); id_tv_nsec = rb_intern("tv_nsec");
} }
static void grpc_rb_shutdown(VALUE val) { static void grpc_rb_shutdown(void) {
(void)val;
grpc_shutdown(); grpc_shutdown();
} }
...@@ -298,7 +297,7 @@ void Init_grpc_c() { ...@@ -298,7 +297,7 @@ void Init_grpc_c() {
grpc_init(); grpc_init();
rb_set_end_proc(grpc_rb_shutdown, Qnil); atexit(grpc_rb_shutdown);
grpc_rb_mGRPC = rb_define_module("GRPC"); grpc_rb_mGRPC = rb_define_module("GRPC");
grpc_rb_mGrpcCore = rb_define_module_under(grpc_rb_mGRPC, "Core"); grpc_rb_mGrpcCore = rb_define_module_under(grpc_rb_mGRPC, "Core");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment