[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS
Siddhesh Poyarekar
report at bugs.python.org
Mon May 28 02:31:40 EDT 2018
Siddhesh Poyarekar <siddhesh.poyarekar at gmail.com> added the comment:
> Pedantically the correct way is to cast to a function pointer with no prototype (empty parentheses) and from that to the target type. See for example. See for example https://godbolt.org/g/FdPdUj
This is one way that the gcc diagnostics explicitly allow in addition to variable arguments like so: https://godbolt.org/g/Dtb4fv
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33012>
_______________________________________
More information about the Python-bugs-list
mailing list