Fix compile warnings in backtrace
Part of #10688 Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
parent
acacee80a2
commit
f2e3c9896e
@ -66,7 +66,7 @@ static const UnwindCallbacks UnwCallbacks = {
|
||||
void backtrace(void) {
|
||||
|
||||
UnwindFrame btf;
|
||||
uint32_t sp,lr,pc;
|
||||
uint32_t sp = 0, lr = 0, pc = 0;
|
||||
|
||||
// Capture the values of the registers to perform the traceback
|
||||
__asm__ __volatile__ (
|
||||
|
@ -129,7 +129,6 @@ static UnwResult UnwTabStateInit(const UnwindCallbacks *cb, UnwTabState *ucb, ui
|
||||
*/
|
||||
static UnwResult UnwTabExecuteInstructions(const UnwindCallbacks *cb, UnwTabState *ucb) {
|
||||
|
||||
UnwResult err;
|
||||
int instruction;
|
||||
uint32_t mask;
|
||||
uint32_t reg;
|
||||
|
Loading…
Reference in New Issue
Block a user