From 5850ee756dde989b9570cfcf26126d1cc46ef8f7 Mon Sep 17 00:00:00 2001 From: Konrad Dybcio Date: Thu, 21 Sep 2023 09:24:24 +0200 Subject: [PATCH] cdba-server: Remove dead code Don't count the timers, as it's not used anywhere. Clang is unhappy with that: cdba-server.c:307:6: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count = 0; Signed-off-by: Konrad Dybcio --- cdba-server.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cdba-server.c b/cdba-server.c index 2c56d97..af45f79 100644 --- a/cdba-server.c +++ b/cdba-server.c @@ -304,7 +304,6 @@ static struct timeval *watch_timer_next(void) struct timeval now; struct timer *next; struct timer *t; - int count = 0; if (list_empty(&timer_watches)) return NULL; @@ -314,7 +313,6 @@ static struct timeval *watch_timer_next(void) list_for_each_entry(t, &timer_watches, node) { if (timercmp(&t->tv, &next->tv, <)) next = t; - count++; } gettimeofday(&now, NULL);