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
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: cpplib and a couple others: squelch -pedantic warnings
- From: Gabriel Dos_Reis <Gabriel dot Dos_Reis at sophia dot inria dot fr>
- Date: 05 May 2000 05:05:20 +0200
- Cc: ghazi at caip dot rutgers dot edu, zack at wolery dot cumb dot org, gcc-patches at gcc dot gnu dot org, jason at cygnus dot com
- Organization: CodeSourcery, LLC
- References: <200005041858.OAA08134@caip.rutgers.edu> <20000504164509B.mitchell@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
| >>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
|
| Kaveh> How about providing a cfree() function which does the
| Kaveh> following:
|
| I think that's a dangerous subversion of the type system. Then,
| `cfree ("abc")' will compile, which is dangerous.
Agreed in principle. I just realized that cfree() only solves half of
the problem. There are other places where we need to cast away
constness. Just de-constifying everything isn't really acceptable,
and [cx]free is just half a solution. Do we really need -Wcast-qual for
GCC? How useful is it?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com