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: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: cpplib and a couple others: squelch -pedantic warnings
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 11 May 2000 00:32:14 +0200
- Cc: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org, jason at cygnus dot com, zack at wolery dot cumb dot org
- Organization: CodeSourcery, LLC
- References: <200005090111.VAA20594@caip.rutgers.edu>
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
[...]
| > const char *foo;
| > free (__extension__ (char *) foo);
|
| without any warnings, even from -Wcast-qual.
I definitely don't buy this one.
Casting-away constness isn't a GNU C extension.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com