From 5308b63a017117fe5ba048c684649e3729b40e39 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 9 Feb 2021 14:22:51 +0200 Subject: [PATCH] ci: fix the `-cflags "-Werror"` job, by explicit casting to `void**` --- vlib/v/gen/c/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 36d4b74297..f0928bf778 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -5970,7 +5970,7 @@ fn (mut g Gen) go_stmt(node ast.GoStmt, joinable bool) string { g.gowrappers.writeln('\tret_ptr = thread.ret_ptr;') } } else { - g.gowrappers.writeln('\tint stat = pthread_join(thread, $c_ret_ptr_ptr);') + g.gowrappers.writeln('\tint stat = pthread_join(thread, (void **)$c_ret_ptr_ptr);') } g.gowrappers.writeln('\tif (stat != 0) { v_panic(_SLIT("unable to join thread")); }') if g.pref.os == .windows {