cpplib and a couple others: squelch -pedantic warnings
Zack Weinberg
zack@wolery.cumb.org
Tue May 9 16:32:00 GMT 2000
On Mon, May 08, 2000 at 09:11:01PM -0400, Kaveh R. Ghazi wrote:
> > From: Mark Mitchell <mark@codesourcery.com>
> >
> > >>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:
> >
> > Jason> give up on -Wcast-qual.
> >
> > Gabriel> That is also my inclination.
> >
> > I am happy to defer to your excellent judgement.
> > --
> > Mark Mitchell mark@codesourcery.com
> > CodeSourcery, LLC http://www.codesourcery.com
>
>
> Let's please not give up so easily.
>
> Both Mark and Gabriel mentioned they'd like the ability to explicitly
> cast away const-ness without any warnings. The following tiny patch
> allows you to write:
>
> > const char *foo;
> > free (__extension__ (char *) foo);
>
> without any warnings, even from -Wcast-qual.
Yuck! I would rather put up with the warnings than write that.
zw
More information about the Gcc-patches
mailing list