Skip to content

Commit 5308b63

Browse files
committed
ci: fix the -cflags "-Werror" job, by explicit casting to void**
1 parent d110f0d commit 5308b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/gen/c/cgen.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5970,7 +5970,7 @@ fn (mut g Gen) go_stmt(node ast.GoStmt, joinable bool) string {
59705970
g.gowrappers.writeln('\tret_ptr = thread.ret_ptr;')
59715971
}
59725972
} else {
5973-
g.gowrappers.writeln('\tint stat = pthread_join(thread, $c_ret_ptr_ptr);')
5973+
g.gowrappers.writeln('\tint stat = pthread_join(thread, (void **)$c_ret_ptr_ptr);')
59745974
}
59755975
g.gowrappers.writeln('\tif (stat != 0) { v_panic(_SLIT("unable to join thread")); }')
59765976
if g.pref.os == .windows {

0 commit comments

Comments
 (0)