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: "kmk at ssl dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2005 22:03:50 -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 kmk at ssl dot org 2005-02-27 22:03 -------
And furthermore, if it is so "useful" to be able to hide this behavior, why have
this option at all? Why force programmers to undertake the two-step bomb-arming
instead of just letting them do it in one step by casting away the const
directly? What is the purpose of this option if you can evade it with "a little
extra effort"?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20229