This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/20229] -Wcast-qual option is easily evaded


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]