Message328298
> 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. |
|
Date |
User |
Action |
Args |
2018-10-23 10:22:01 | vstinner | set | recipients:
+ vstinner, pitrou, benjamin.peterson, steve.dower, siddhesh |
2018-10-23 10:22:01 | vstinner | set | messageid: <1540290121.37.0.788709270274.issue33015@psf.upfronthosting.co.za> |
2018-10-23 10:22:01 | vstinner | link | issue33015 messages |
2018-10-23 10:22:01 | vstinner | create | |
|