From d645aff48e5182b020dc87061aa70977122f2749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 24 Sep 2020 17:47:20 +0200 Subject: [PATCH] module/clock: silence compiler warning: ensure timeout_ms is initialized --- modules/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/clock.c b/modules/clock.c index 6c0cb56..e9f1694 100644 --- a/modules/clock.c +++ b/modules/clock.c @@ -76,7 +76,7 @@ run(struct module *mod) .tv_usec = _now.tv_nsec / 1000, }; - int timeout_ms; + int timeout_ms = 1000; switch (m->update_granularity) { case UPDATE_GRANULARITY_SECONDS: {