Fix compiler warnings

This commit is contained in:
fvanroie 2021-05-06 18:19:32 +02:00
parent fdc8d86b3f
commit 55d45f29c8
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);