From a8ccc2aa89c78108566c67b9e853797ea451f9c8 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Fri, 24 May 2024 10:20:25 +0200 Subject: FIX GCC Warnings, added more checking to gcc flags --- modules/benchmark/iperf3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/benchmark/iperf3.c') diff --git a/modules/benchmark/iperf3.c b/modules/benchmark/iperf3.c index 43e40627..43b98df4 100644 --- a/modules/benchmark/iperf3.c +++ b/modules/benchmark/iperf3.c @@ -32,7 +32,7 @@ static int iperf3_version() { if (spawned) { ret = 0; p = out; - while(next_nl = strchr(p, '\n')) { + while((next_nl = strchr(p, '\n'))) { *next_nl = 0; /* version */ mc = sscanf(p, "iperf %d.%d", &v1, &v2); @@ -75,7 +75,6 @@ static double _get_double(JsonParser *j, const char* path) { static bench_value iperf3_client() { bench_value ret = EMPTY_BENCH_VALUE; - int v1 = 0, v2 = 0, v3 = 0, mc = 0; gboolean spawned; gchar *out, *err; GError *e = NULL; -- cgit v1.2.3