Date: Tue, 17 Feb 2009 20:06:08 -0800 From: Marcel Moolenaar <xcllnt@mac.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: mips@FreeBSD.org, tinderbox@FreeBSD.org, current@FreeBSD.org Subject: Re: [head tinderbox] failure on mips/mips Message-ID: <302F9BB0-AF38-422C-86DB-96FCF47C2168@mac.com> In-Reply-To: <20090217.203647.-1518647466.imp@bsdimp.com> References: <20090218023328.227617302F@freebsd-current.sentex.ca> <20090217.203647.-1518647466.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 17, 2009, at 7:36 PM, M. Warner Losh wrote: > In message: <20090218023328.227617302F@freebsd-current.sentex.ca> > FreeBSD Tinderbox <tinderbox@freebsd.org> writes: > : /src/usr.sbin/bsnmpd/modules/snmp_mibII/../../../../contrib/bsnmp/ > snmp_mibII/mibII.c:1016: warning: cast increases required alignment > of target type > > there's still 3 or 4 of these in the tree that I'm trying to track > back to root cause. A simple (void *) fixes the problem, but I want > to understand the issues before I slap that bad-boy in there... I think the warning simply means that you cast from pointer to type A with alignment requirement P to pointer to type B with alignment requirement Q, and with P < Q. This doesn't necessary mean there's a problem (i.e that you have a misaligned dereference), but there's a potential. A case by case analysis is called for... -- Marcel Moolenaar xcllnt@mac.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?302F9BB0-AF38-422C-86DB-96FCF47C2168>