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

fix pthread 3rd arg voidptr warning

This commit is contained in:
Nicolas Sauzede
2019-11-07 22:58:49 +01:00
committed by Alexander Medvednikov
parent 0ca75f7782
commit 3a99217592
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ fn (v &V) generate_hotcode_reloading_main_caller() {
cgen.genln(' char *live_library_name = "$so_name";')
cgen.genln(' load_so(live_library_name);')
cgen.genln(' pthread_t _thread_so;')
cgen.genln(' pthread_create(&_thread_so , NULL, &reload_so, live_library_name);')
cgen.genln(' pthread_create(&_thread_so , NULL, (void *)&reload_so, live_library_name);')
} else {
// windows:
so_name := file_base + if v.pref.ccompiler == 'msvc' {'.dll'} else {'.so'}