Browse Source

Fix compile warnings in backtrace

Part of #10688

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
pull/1/head
Scott Lahteine 7 years ago
parent
commit
f2e3c9896e
  1. 2
      Marlin/src/backtrace/backtrace.cpp
  2. 1
      Marlin/src/backtrace/unwarmbytab.cpp

2
Marlin/src/backtrace/backtrace.cpp

@ -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__ (

1
Marlin/src/backtrace/unwarmbytab.cpp

@ -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;

Loading…
Cancel
Save