Siddhesh Poyarekar <siddhesh.poyare...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to