You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2022/11/01 12:50:04 UTC
[incubator-nuttx] branch master updated: arm/backtrace_sp: fix build warning
This is an automated email from the ASF dual-hosted git repository.
jerpelea 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 3379fc96fc arm/backtrace_sp: fix build warning
3379fc96fc is described below
commit 3379fc96fcad80bc7890c3bb928ed43514433cea
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Tue Nov 1 14:46:42 2022 +0900
arm/backtrace_sp: fix build warning
common/arm_backtrace_sp.c: In function 'up_backtrace':
common/arm_backtrace_sp.c:253:15: warning: assignment to 'long unsigned int' from 'uint8_t *' {aka 'unsigned char *'} makes integer from pointer without a cast [-Wint-conversion]
253 | top = g_intstacktop;
|
---
arch/arm/src/common/arm_backtrace_sp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/common/arm_backtrace_sp.c b/arch/arm/src/common/arm_backtrace_sp.c
index 7a004871a6..59a1177804 100644
--- a/arch/arm/src/common/arm_backtrace_sp.c
+++ b/arch/arm/src/common/arm_backtrace_sp.c
@@ -250,7 +250,7 @@ int up_backtrace(struct tcb_s *tcb,
# ifdef CONFIG_SMP
top = arm_intstack_top();
# else
- top = g_intstacktop;
+ top = (unsigned long)g_intstacktop;
# endif /* CONFIG_SMP */
#else
top = (unsigned long)rtcb->stack_base_ptr +