You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/10/14 19:10:03 UTC

[incubator-nuttx] branch master updated: arm/backtrace_fp: fix build warning

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e3aa83706 arm/backtrace_fp: fix build warning
4e3aa83706 is described below

commit 4e3aa83706ddf40884c0cc2b6f776e65e86fe55b
Author: chao an <an...@xiaomi.com>
AuthorDate: Sat Oct 15 00:37:05 2022 +0800

    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 <an...@xiaomi.com>
---
 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 */