From 864055bf1806f1331843379ced674b454b59bfca Mon Sep 17 00:00:00 2001 From: Shell Date: Sat, 30 Mar 2024 17:58:38 +0800 Subject: [fixup] aarch64 UMP compiler error (#8677) Signed-off-by: Shell --- components/libc/compilers/common/ctime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/libc/compilers') diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c index a1bb3c439d..c6602698ff 100644 --- a/components/libc/compilers/common/ctime.c +++ b/components/libc/compilers/common/ctime.c @@ -879,7 +879,8 @@ static void rtthread_timer_wrapper(void *timerobj) } #ifdef RT_USING_SMART /* this field is named as tid in musl */ - int tid = *(int *)&timer->sigev_notify_function; + void *ptid = &timer->sigev_notify_function; + int tid = *(int *)ptid; struct lwp_timer_event_param *data = rt_container_of(timer->work, struct lwp_timer_event_param, work); data->signo = timer->sigev_signo; -- cgit v1.3.1