From 55d45f29c8fbda9df1c7f7fd04510732170bc35d Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Thu, 6 May 2021 18:19:32 +0200 Subject: [PATCH] Fix compiler warnings --- src/hasp/hasp_event.cpp | 4 ++-- src/hasp_debug.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hasp/hasp_event.cpp b/src/hasp/hasp_event.cpp index fe8ad4e4..4c27d210 100644 --- a/src/hasp/hasp_event.cpp +++ b/src/hasp/hasp_event.cpp @@ -70,7 +70,7 @@ void event_timer_calendar(lv_task_t* task) int rslt = gettimeofday(&curTime, NULL); time_t t = curTime.tv_sec; tm* timeinfo = localtime(&t); - (void*)rslt; + (void)rslt; // unused if(timeinfo->tm_year < 120) { lv_task_set_period(task, 60000); // try again in a minute @@ -100,7 +100,7 @@ void event_timer_clock(lv_task_t* task) int rslt = gettimeofday(&curTime, NULL); time_t seconds = curTime.tv_sec; tm* timeinfo = localtime(&seconds); - (void*)rslt; + (void)rslt; // unused if(timeinfo->tm_year < 120) { lv_task_set_period(task, 60000); // try again in a minute diff --git a/src/hasp_debug.cpp b/src/hasp_debug.cpp index 8064fa88..85383777 100644 --- a/src/hasp_debug.cpp +++ b/src/hasp_debug.cpp @@ -58,7 +58,7 @@ static void debugPrintTimestamp(int level, Print* _logOutput) int rslt = gettimeofday(&curTime, NULL); time_t t = curTime.tv_sec; tm* timeinfo = localtime(&t); - (void*)rslt; + (void)rslt; // unused debugSendAnsiCode(F(TERM_COLOR_CYAN), _logOutput);