lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-devel] memory alignment in 32bit architecture


From: Bill Auerbach
Subject: RE: [lwip-devel] memory alignment in 32bit architecture
Date: Fri, 20 Mar 2009 16:00:48 -0400

I'd trust the compiler on this one and say it's bad.  If it does end up
unaligned, you'll get either bad data or a exception trap depending on what
your processor does for this case.

Bill

>-----Original Message-----
>From: address@hidden
>[mailto:address@hidden On
>Behalf Of Piero 74
>Sent: Friday, March 20, 2009 2:46 PM
>To: lwip-devel
>Subject: Re: [lwip-devel] memory alignment in 32bit architecture
>
>Simon, as you said was my understanding.
>but, why i have this warning:
>
>"i'm trying to use lwip in cvs head...
>
> i tried the compilation, and i saw in these piece of code (file dhcp.c)
>
> #if LWIP_DNS
>       dns_setserver( n, (struct ip_addr *)(&(dhcp-
>>offered_dns_addr[n].addr)));
> #endif /* LWIP_DNS */
>
> a warning like this:
> Warning[Pa039]: use of address of unaligned structure member
>....\lwip\src\core\dhcp.c 539
>"
>
>bye
>Piero






reply via email to

[Prev in Thread] Current Thread [Next in Thread]