mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Fix compiler warnings
This commit is contained in:
parent
fdc8d86b3f
commit
55d45f29c8
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user