This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Warning patch installed
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Warning patch installed
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Mon, 8 May 2000 02:54:27 +0200
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200005041846.OAA07188@caip.rutgers.edu>
* Kaveh R. Ghazi (ghazi@caip.rutgers.edu) [20000504 20:48]:
> IMO, -Wcast-qual is not broken. It correctly warns when you cast away
> the const-ness of a pointer. E.g. "const char *foo; free((char *)foo);"
What we'd need would be something like const_cast in C++. This would allow
making it explicit what is being tried to achieve. I just hope that
something like that will be added to the next C standard. I at least would
love to have it. And no, I'm not proposing to add this as a GCC extension
because of the troubles these have caused and still are causing.
Philipp
--
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany
#define NINODE 50 /* number of in core inodes */
#define NPROC 30 /* max number of processes */
-- Version 7 UNIX fuer PDP 11, /usr/include/sys/param.h