[Bug c/20229] -Wcast-qual option is easily evaded
kmk at ssl dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 28 08:39:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list