https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77392
mednafen at sent dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mednafen at sent dot com --- Comment #1 from mednafen at sent dot com --- The return type for the thread entry point function is wrong, and the variable whose address/pointer you're passing to pthread_join is of the wrong type, which is probably leading to stack corruption. These are things the compiler should have warned or errored-out about if not for the explicit void* casts.