From 452ba280ba74558599bb5d7e45b4c07fcbdd8387 Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Sun, 13 Aug 2023 23:15:34 -0700 Subject: [PATCH] host: rm unused variables Resolves errors thrown by AppleClang 14.0.3.14030022. --- host/libraries/libbladeRF/src/driver/si5338.c | 4 +--- host/libraries/libbladeRF_test/test_parse/src/main.c | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/host/libraries/libbladeRF/src/driver/si5338.c b/host/libraries/libbladeRF/src/driver/si5338.c index 7aada028f..80cda11b2 100644 --- a/host/libraries/libbladeRF/src/driver/si5338.c +++ b/host/libraries/libbladeRF/src/driver/si5338.c @@ -349,7 +349,7 @@ static int si5338_calculate_multisynth(struct si5338_multisynth *ms, struct bladerf_rational_rate req; struct bladerf_rational_rate abc; - uint8_t r_value, r_power; + uint8_t r_value; /* Don't muss with the users data */ req = *rate; @@ -363,11 +363,9 @@ static int si5338_calculate_multisynth(struct si5338_multisynth *ms, /* Find a suitable R value */ r_value = 1; - r_power = 0; while (req.integer < 5000000 && r_value < 32) { si5338_rational_double(&req); r_value <<= 1; - r_power++; } if (r_value == 32 && req.integer < 5000000) { diff --git a/host/libraries/libbladeRF_test/test_parse/src/main.c b/host/libraries/libbladeRF_test/test_parse/src/main.c index db30a31f5..f5ccb6a18 100644 --- a/host/libraries/libbladeRF_test/test_parse/src/main.c +++ b/host/libraries/libbladeRF_test/test_parse/src/main.c @@ -177,12 +177,11 @@ bool test_csv2int() int main(int argc, char *argv[]) { - size_t good = 0, bad = 0; + size_t bad = 0; printf("*** testing csv2int ***\n"); if (test_csv2int()) { printf("*** testing csv2int: PASSED ***\n"); - ++good; } else { printf("*** testing csv2int: FAILED ***\n"); ++bad;