[patch] const_cast to be replaced by str_unconst
Oswald Buddenhagen
ossi at kde.org
Thu Apr 14 17:27:06 UTC 2005
On Thu, Apr 14, 2005 at 07:19:28PM +0200, Oswald Buddenhagen wrote:
> On Tue, Apr 12, 2005 at 08:28:50PM +0200, Roland Illig wrote:
> > >You can inline it.
> >
> > When compiling with gcc using -Wcast-qual, this would give us a warning
> > for every file.
> >
> ???
> put
> static inline unconst***() { ... }
> in the header file and be fine.
> of course you need a configure check that optionally #defines inline to
> nothing.
>
whoops, this is exactly what you're talking about. :}
anyway, i don't think this extra warning would matter, given that it
would be in the same location in every file.
and, fwiw, isn't it possible to use a #pragma or some __attribute__ to
get rid of the warning?
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
More information about the mc-devel
mailing list