[ovs-dev] [PATCH ovn] pinctrl.c: Fix maybe-uninitialized warnings.

Ben Pfaff blp at ovn.org
Thu Oct 31 16:21:02 UTC 2019


On Wed, Oct 30, 2019 at 02:26:27PM -0700, Han Zhou wrote:
> ../controller/pinctrl.c: In function ‘ipv6_ra_send’:
> ../controller/pinctrl.c:2393:13: error: ‘r1’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
>              memcpy(&dnssl[i], t1, strlen(t1));
>              ^

This is weird: the message is about r1 but the line of code it cites
does not mention r1.  Is there some macro trickery or something else
unusual going on?


More information about the dev mailing list