From 4e3aa83706ddf40884c0cc2b6f776e65e86fe55b Mon Sep 17 00:00:00 2001 From: chao an Date: Sat, 15 Oct 2022 00:37:05 +0800 Subject: [PATCH] arm/backtrace_fp: fix build warning common/arm_backtrace_fp.c: In function 'up_backtrace': common/arm_backtrace_fp.c:126:23: warning: assignment to 'void *' from 'uintptr_t' {aka 'unsigned int'} makes pointer from integer without a cast [-Wint-conversion] 126 | istacklimit = arm_intstack_top(); | ^ Signed-off-by: chao an --- arch/arm/src/common/arm_backtrace_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/common/arm_backtrace_fp.c b/arch/arm/src/common/arm_backtrace_fp.c index 912477d224..0f8af88bd0 100644 --- a/arch/arm/src/common/arm_backtrace_fp.c +++ b/arch/arm/src/common/arm_backtrace_fp.c @@ -123,7 +123,7 @@ int up_backtrace(struct tcb_s *tcb, { #if CONFIG_ARCH_INTERRUPTSTACK > 7 # ifdef CONFIG_SMP - istacklimit = arm_intstack_top(); + istacklimit = (void *)arm_intstack_top(); # else istacklimit = g_intstacktop; # endif /* CONFIG_SMP */