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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to James Hilliard from comment #7)
> 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 warning is correct and is a bug in the test program ...

Reply via email to