This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib and a couple others: squelch -pedantic warnings
>>>>> "Gabriel" == Gabriel Dos Reis <Gabriel.Dos_Reis@sophia.inria.fr> writes:
Gabriel> Agreed in principle. I just realized that cfree() only
Gabriel> solves half of the problem. There are other places where
Gabriel> we need to cast away constness. Just de-constifying
Gabriel> everything isn't really acceptable, and [cx]free is just
Gabriel> half a solution. Do we really need -Wcast-qual for GCC?
Gabriel> How useful is it?
I think we should go with Kaveh's changes for now, and give up on the
const-ness. This is something that works better in C++ than in C, I
think, because in C++ you don't have to expose structure internals.
Most of GCC makes very little use of `const'; it's not a crisis if we
can't use it here.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com