Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: xsrc/external/mit/xauth/dist



In article <20130601232927.GA19534%netbsd.org@localhost>,
David Holland  <dholland-sourcechanges%netbsd.org@localhost> wrote:
>On Fri, May 31, 2013 at 12:26:53PM +0300, Jukka Ruohonen wrote:
> > > Module Name:      xsrc
> > > Committed By:     mrg
> > > Date:             Fri May 31 06:46:39 UTC 2013
> > > 
> > > Modified Files:
> > >   xsrc/external/mit/xauth/dist: process.c
> > > 
> > > Log Message:
> > > apply __UNCONST() if it exists.
> > 
> > Reminds me: should/can __UNCONST() be revisited w.r.t. the thread below?
> > 
> >     http://lists.freebsd.org/pipermail/freebsd-arch/2013-May/014371.html
>
>How/why? Yes, it's unsafe. That's the *point*.

Well, there is an advantage that the FreeBSD one has over ours. It can be
used in c++ with -Wold-style-cast, if defined as:

#define __DECONST(t, a) const_cast<t>(a)

christos



Home | Main Index | Thread Index | Old Index