[sim,rx] Silence warning that turns into a build error
authorLuis Machado <luis.machado@linaro.org>
Thu, 8 Apr 2021 19:49:04 +0000 (16:49 -0300)
committerLuis Machado <luis.machado@linaro.org>
Fri, 9 Apr 2021 12:17:32 +0000 (09:17 -0300)
commited29efbd172e04b53d1f9ddab64e6e0cf6dceaf2
treefdbe00f567c0db5a742aeae103a4e43c2ba2c65e
parentdd17020328b4ebf45be26eed156fba3d269096f6
[sim,rx] Silence warning that turns into a build error

On a 32-bit build, I ran into the following:

sim/rx/fpu.c:789:6: error: "*((void *)&a+8)" may be used uninitialized in this function [-Werror=maybe-uninitialized]
rv = fp_implode (&a);

To silence this, just initialize the struct with 0's.

sim/rx/ChangeLog:

2021-04-09  Luis Machado  <luis.machado@linaro.org>

* fpu.c (rxfp_itof): Initialize structure.
sim/rx/fpu.c