svn commit: r185553 - head/lib/libutil

Dag-Erling Smørgrav des at des.no
Tue Dec 2 04:55:11 PST 2008


Peter Wemm <peter at FreeBSD.org> writes:
> Log:
>   Attempt a quick bandaid for arm build breakage.  I went to the trouble of
>   maintaining alignment, but I'm not sure how to tell gcc this.

There's no good way to do this.  In an ideal world, you could add an
assertion that the offset is a multiple of __alignof__(struct
kinfo_foo), and gcc would understand, but I don't think that works in
practice.

Coverity will probably complain about this as well, but hopefully the
cast will pacify it like it pacifies gcc.

In pw_util and gr_util, scf@ and I solved a similar issue by using a
wrapper struct, but that wouldn't work here.

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


More information about the svn-src-head mailing list