STINNER Victor <vstin...@redhat.com> added the comment:

> gcc8.1 throws this warning irrespective of the cast since converting function 
> pointers may result in undefined behaviour unless it is cast back to its 
> original type.

Do you have a reference explaining this issue? I dislike adding a memory 
allocation to call a function just to fix a compiler warning. From my point of 
view, at the end, the function pointer is just an integer. I don't understand 
how an additional memory allocation solves the issue.

----------
nosy: +vstinner

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33015>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to