[issue33015] Fix function cast warning in thread_pthread.h

STINNER Victor report at bugs.python.org
Tue Oct 23 06:47:41 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

The GCC warning is:

func_cast.c:34:30: warning: cast between incompatible function types from 'python_callback' {aka 'void (*)(void *)'} to 'void * (*)(void *)' [-Wcast-function-type]
     pthread_callback func2 = (pthread_callback)func;
                              ^

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33015>
_______________________________________


More information about the Python-bugs-list mailing list