From 377a25d3f0831b5fd4a0ac01358ec86341d2531e Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 11 Aug 2020 10:57:41 -0700 Subject: binding/radio_impl_tef665x: Avoid uninitialised variable warnings GCC 10 generates uninitialised warnings for the fd variable, to avoid these initalise the variables to 0. Signed-off-by: Alistair Francis Change-Id: Ieb718498f9d9dd1e8d2e2e79f71f060218759ec6 --- binding/radio_impl_tef665x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binding/radio_impl_tef665x.c') diff --git a/binding/radio_impl_tef665x.c b/binding/radio_impl_tef665x.c index a3284f2..a1cc2e3 100644 --- a/binding/radio_impl_tef665x.c +++ b/binding/radio_impl_tef665x.c @@ -1068,7 +1068,7 @@ static radio_band_t tef665x_get_band(void) static void tef665x_set_band(radio_band_t band) { - uint fd; + uint fd = 0; int ret = i2c_init(I2C_DEV, _open, &fd); _debug("i2c_init ret value", ret); @@ -1097,7 +1097,7 @@ static uint32_t tef665x_get_frequency(void) static void tef665x_set_frequency(uint32_t frequency) { - uint fd, f; + uint fd = 0, f; int ret = i2c_init(I2C_DEV, _open, &fd); _debug("i2c_init ret value", ret); -- cgit 1.2.3-korg