Re: [head tinderbox] failure on mips/mips

From: Marcel Moolenaar <xcllnt_at_mac.com>
Date: Tue, 17 Feb 2009 20:06:08 -0800
On Feb 17, 2009, at 7:36 PM, M. Warner Losh wrote:

> In message: <20090218023328.227617302F_at_freebsd-current.sentex.ca>
>            FreeBSD Tinderbox <tinderbox_at_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_at_mac.com
Received on Wed Feb 18 2009 - 03:06:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC