https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to James Hilliard from comment #7)
> (In reply to Jakub Jelinek from comment #6)
> > Created attachment 53984 [details]
> > gcc13-pr107846.patch
> > 
> > Untested fix.
> 
> This appears to fix error, the warning is still present:
> progs/test_tc_tunnel.c: In function '__encap_ipv4':
> progs/test_tc_tunnel.c:228:31: warning: taking address of packed member of
> 'struct v4hdr' may result in an unaligned pointer value
> [-Waddress-of-packed-member]
>   228 |         set_ipv4_csum((void *)&h_outer.ip);
>       |                               ^~~~~~~~~~~

That is unrelated and why do you think it is wrong?  I don't think that warning
has false positives.

Reply via email to