From eaa8d8be9f5eefd2c29eec6673e01b2c7f52fed0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 29 Oct 2017 21:09:56 +0100 Subject: [PATCH] CLCD: fix possible compile error error: unused variable 'ret' [-Werror=unused-variable] --- src/driver/simple_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 8f32b99a7..7191f5d0f 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -348,8 +348,8 @@ void CLCD::showTime(bool force) if (force || last_display || (hour != t->tm_hour) || (minute != t->tm_min)) { hour = t->tm_hour; minute = t->tm_min; - int ret = -1; #if HAVE_SPARK_HARDWARE + int ret = -1; now += t->tm_gmtoff; int fd = dev_open(); #if 0 /* VFDSETTIME is broken and too complicated anyway -> use VFDSETTIME2 */