This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20229] -Wcast-qual option is easily evaded
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2005 14:54:44 -0000
- Subject: [Bug c/20229] -Wcast-qual option is easily evaded
- References: <20050227044915.20229.kmk@ssl.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schwab at suse dot de 2005-02-27 14:54 -------
Casting to an integer does not remove the qualifier from the target type, it
removes the target type completely. Since an integer is not a pointer, there
cannot be a target type any more. So the documentation is correct.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20229