cvs commit: src/sys/i386/include atomic.h

Dag-Erling Smørgrav des at des.no
Tue Mar 28 18:28:28 UTC 2006


John Baldwin <jhb at freebsd.org> writes:
> One reason for not having the casts, btw, is that you lose type
> checking.

Huh?  Before my patch, any use of atomic_*_ptr with warnings turned
off would result in a slew of warnings because you'd be passing
pointers to a function which is declared to take u_int.  The only way
to make this type safe is to use inline functions instead of the
macros I wrote.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-src mailing list