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