Useless pointer-to-int-cast warning?
Vincent Lefevre
vincent+gcc@vinc17.org
Fri Aug 17 22:27:00 GMT 2018
What's the point of the pointer-to-int-cast warning, which is
enabled by -Wall?
I get this warning under 32-bit Linux when casting a pointer to
uintmax_t. I use uintmax_t to make sure that the integer size is
large enough. So, what's the problem?
--
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