bpo-33015: Fix func cast warn in PyThread_start_new_thread() by vstinner · Pull Request #10057 · python/cpython
Fix a warning on a cast between two different function pointer types
in the pthread implementation of PyThread_start_new_thread().
Cast the function pointer temporarily to "void *" to mute the
warning. The overall cast changes the return type of the function
pointer: convert "void" return type (no return type) to "void*"
return type.
Python uses pthread_detach() and doesn't use pthread_join(), the
thread return value is ignored.