On Thu, Jul 27, 2017 at 09:23:09PM -0000, Christian Weisgerber wrote:
> On 2017-07-27, Florian Obser <[email protected]> wrote:
> 
> >> mcast-proxy.c:662:30: warning: taking address of packed member 'ip6_dst' 
> >> of class or structure 'ip6_hdr' may result in an unaligned pointer value 
> >> [-Waddress-of-packed-member]
> >
> > We have similar warnings in base in rtadvd(8).
> 
> In the kernel, too.  Well, we would if we didn't shut them up with
> -Wno-address-of-packed-member.

Hmm, it's entirely possible that I spoke out of my ass then.
I think one example where clang figures out that it's not a problem
was in the kernel. But if it's shut up there... Not sure if I had
another example.
Now I'm wondering if it's completely retarded and just warns if you
take the address of a packed member and completely ignores
alignment *sigh*

> 
> -- 
> Christian "naddy" Weisgerber                          [email protected]
> 

-- 
I'm not entirely sure you are real.

Reply via email to