Useless pointer-to-int-cast warning?

Vincent Lefevre vincent+gcc@vinc17.org
Mon Aug 20 15:16:00 GMT 2018


On 2018-08-20 15:52:03 +0100, Jonathan Wakely wrote:
> And since I can't imagine an implementation where uintmax_t works but
> uintptr_t is not defined, I am generalising that to "If uintptr_t is
> not defined, the problem isn't really solvable".

The problem is that the use of uintptr_t uselessly makes the code
more complex. Really, I don't mind whether uintptr_t is defined or
not, but the code must compile.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Gcc-help mailing list