Fix compile warnings in backtrace

Part of #10688

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
Scott Lahteine 2018-05-11 23:38:29 -05:00
parent acacee80a2
commit f2e3c9896e
2 changed files with 1 additions and 2 deletions

View file

@ -66,7 +66,7 @@ static const UnwindCallbacks UnwCallbacks = {
void backtrace(void) { void backtrace(void) {
UnwindFrame btf; 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 // Capture the values of the registers to perform the traceback
__asm__ __volatile__ ( __asm__ __volatile__ (

View file

@ -129,7 +129,6 @@ static UnwResult UnwTabStateInit(const UnwindCallbacks *cb, UnwTabState *ucb, ui
*/ */
static UnwResult UnwTabExecuteInstructions(const UnwindCallbacks *cb, UnwTabState *ucb) { static UnwResult UnwTabExecuteInstructions(const UnwindCallbacks *cb, UnwTabState *ucb) {
UnwResult err;
int instruction; int instruction;
uint32_t mask; uint32_t mask;
uint32_t reg; uint32_t reg;