From 58db5ee331d4273bea3f3db723397b162e87df5b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 4 Nov 2017 15:39:04 +0100 Subject: [PATCH] simple_display.cpp: partial revert "fix generic build" This reverts commit c7c52324a39c3b65e21b35d9983f26e95efa6537. hd51 build was broken with -Werror=unused-variable --- src/driver/simple_display.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 82ba228da..f777d3ed9 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -348,7 +348,9 @@ 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; +#if !HAVE_SPARK_HARDWARE && !HAVE_ARM_HARDWARE int ret = -1; +#endif #if HAVE_SPARK_HARDWARE now += t->tm_gmtoff; int fd = dev_open();