1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix the -cflags "-Werror" job, by explicit casting to void**

This commit is contained in:
Delyan Angelov 2021-02-09 14:22:51 +02:00
parent d110f0de74
commit 5308b63a01
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -5970,7 +5970,7 @@ fn (mut g Gen) go_stmt(node ast.GoStmt, joinable bool) string {
g.gowrappers.writeln('\tret_ptr = thread.ret_ptr;') g.gowrappers.writeln('\tret_ptr = thread.ret_ptr;')
} }
} else { } 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")); }') g.gowrappers.writeln('\tif (stat != 0) { v_panic(_SLIT("unable to join thread")); }')
if g.pref.os == .windows { if g.pref.os == .windows {