[Olsr-dev] [PATCH v1 1/2] android: fix type punning warnings on IN6_IS_ADDR_V4MAPPED

Henning Rogge (spam-protected)
Fri Oct 19 18:21:52 CEST 2012


On Fri, Oct 19, 2012 at 6:09 PM, Ferry Huberts <(spam-protected)> wrote:
> I'm now down to a single warning on the android non-debug build:
>
> It's in pud
>>
>> [CC] src/netTools.c
>> src/netTools.c: In function 'getIPv4Address':
>> src/netTools.c:92:11: warning: cast increases required alignment of target
>> type [-Wcast-align]
>
>
>
> Any help on fixing that is much appreciated

What do you think about changing the return type of the function
getIPv4Address() to in_addr_t ?

Henning Rogge
-- 
Steven Hawkings about cosmic inflation: "An increase of billions of
billions of percent in a tiny fraction of a second. Of course, that
was before the present government."




More information about the Olsr-dev mailing list