Message317823
Well, there's only one problem with casting to void *: while converting the function pointer to another *is* standard-compliant, and GCC is being just hypersensitive here, casting a function pointer to void * isn't, though it is a common extension (http://port70.net/~nsz/c/c11/n1570.html#J.5.7).
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 |
|
Date |
User |
Action |
Args |
2018-05-28 03:53:34 | ztane | set | recipients:
+ ztane, vstinner, pmpp, xdegaye, martin.panter, serhiy.storchaka, eitan.adler, siddhesh, cstratak, miss-islington |
2018-05-28 03:53:34 | ztane | set | messageid: <1527479614.63.0.682650639539.issue33012@psf.upfronthosting.co.za> |
2018-05-28 03:53:34 | ztane | link | issue33012 messages |
2018-05-28 03:53:34 | ztane | create | |
|