In article <20130601232927.ga19...@netbsd.org>, David Holland <dholland-sourcechan...@netbsd.org> 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