qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 03/12] slirp: avoid IN6_IS_ADDR_UNSPECIFIED(), r


From: Samuel Thibault
Subject: Re: [Qemu-devel] [PATCH 03/12] slirp: avoid IN6_IS_ADDR_UNSPECIFIED(), rather use in6_zero()
Date: Tue, 9 Jan 2018 22:04:51 +0100
User-agent: NeoMutt/20170113 (1.7.2)

Philippe Mathieu-Daudé, on lun. 08 janv. 2018 14:28:55 -0300, wrote:
> Host: Mac OS 10.12.5
> Compiler: Apple LLVM version 8.1.0 (clang-802.0.42)
> 
>   slirp/ip6_icmp.c:80:38: warning: taking address of packed member 'ip_src' 
> of class or
>         structure 'ip6' may result in an unaligned pointer value
>         [-Waddress-of-packed-member]
>               IN6_IS_ADDR_UNSPECIFIED(&ip->ip_src)) {
>                                        ^~~~~~~~~~
>   /usr/include/netinet6/in6.h:238:42: note: expanded from macro 
> 'IN6_IS_ADDR_UNSPECIFIED'
>           ((*(const __uint32_t *)(const void *)(&(a)->s6_addr[0]) == 0) && \

I have applied it to my tree.

Thanks,
Samuel



reply via email to

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