This is the mail archive of the gcc-patches@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]

Re: cpplib and a couple others: squelch -pedantic warnings


"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

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