[Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size`

pluto at agmk dot net gcc-bugzilla@gcc.gnu.org
Sun Feb 25 14:22:00 GMT 2007



------- Comment #3 from pluto at agmk dot net  2007-02-25 14:22 -------
(In reply to comment #2)
> Could you elaborate a litte bit more for me?
> 
> We have already -Wint-to-pointer-cast and -Wpointer-to-int-cast enabled by
> defaul in C. Don't those work for you?

as i have said, i need a compilation error on such casts.
4.2 has a nice -Werror=foo feature, but this PR is about 4.1.
if you don't plan to backport -Werror=foo feature to 4.1
i'll close this PR with suitable comment.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948



More information about the Gcc-bugs mailing list