From 9b428e519fc91204f4be5e91f1436ba6fd63119b Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 8 Feb 2021 10:42:50 +0800 Subject: [PATCH] avoid warning --- components/libc/compilers/common/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index a67c0497af..bd251d99bf 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -329,7 +329,7 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz) { if (tv != RT_NULL) { - return stime(&tv->tv_sec); + return stime((const time_t *)&tv->tv_sec); } else {