This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients cstratak, eitan.adler, martin.panter, miss-islington, pmpp, serhiy.storchaka, siddhesh, vstinner, xdegaye, yan12125, ztane
Date 2018-05-28.14:23:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Pedantically the correct way is to cast to a function pointer with no prototype (empty parentheses)

Thanks for raising this point Antti. This is hinted at by the gcc 8 documentation on -Wcast-function-type: "The function type void (*) (void) is special and matches everything, which can be used to suppress this warning" [1]. One cannot use empty parentheses though as this raises -Wstrict-prototypes on Python builds with gcc and -Wcast-function-type with gcc 8.

So (void *) may be replaced with (void (*) (void)) in my previous code snippets and also in PR 6748 and PR 6749 (I just checked my code).

Date User Action Args
2018-05-28 14:23:22xdegayesetrecipients: + xdegaye, vstinner, pmpp, martin.panter, serhiy.storchaka, ztane, eitan.adler, siddhesh, yan12125, cstratak, miss-islington
2018-05-28 14:23:22xdegayesetmessageid: <>
2018-05-28 14:23:22xdegayelinkissue33012 messages
2018-05-28 14:23:22xdegayecreate