[issue33015] Fix function cast warning in thread_pthread.h

Antoine Pitrou report at bugs.python.org
Tue Oct 23 08:59:24 EDT 2018


Antoine Pitrou <pitrou at free.fr> added the comment:

Right, so one PR is a real fix, the other PR is a workaround (avoids the warning without fixing the underlying problem).

The underlying problem is: if a platform has incompatible ABIs for the two function types, casting one function type to another may produce bugs (memory corruptions, crashes, etc).  We can however decide to consider those platforms unlikely, as the current code has been working for years or decades.

It would be nice to have an opinion from C specialists.

----------
nosy: +gregory.p.smith, skrah

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


More information about the Python-bugs-list mailing list