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

--- Comment #10 from James Hilliard <james.hilliard1 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #8)
> (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.

I wasn't entirely sure if it was wrong or not, was just testing the patch.

Reply via email to