arch/arm: Fix arm_backtrace_unwind.c -Wmaybe-uninitialized and -Wint-conversion warning on n606
(1)common/arm_backtrace_unwind.c:528:18: warning: 'ctrl.lr_addr' may be used uninitialized in this function [-Wmaybe-uninitialized] (2)common/arm_backtrace_unwind.c:626:27: warning: assignment to 'long unsigned int' from 'uint8_t (*)[]' {aka 'unsigned char (*)[]'} makes integer from pointer without a cast [-Wint-conversion] Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
This commit is contained in:
parent
6a5d00f68c
commit
aa34885c8b
@ -431,6 +431,7 @@ int unwind_frame(struct unwind_frame_s *frame)
|
||||
ctrl.vrs[LR] = frame->lr;
|
||||
ctrl.vrs[PC] = 0;
|
||||
ctrl.stack_top = frame->stack_top;
|
||||
ctrl.lr_addr = NULL;
|
||||
|
||||
if (frame->pc == prel31_to_addr(&entry->fnoffset))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user