From ec70bc0523d0067d51b00488f989bd0a781f61d4 Mon Sep 17 00:00:00 2001 From: boarchuz <46267286+boarchuz@users.noreply.github.com> Date: Sat, 4 Sep 2021 14:46:26 +1000 Subject: [PATCH] fix compiler warning with silent panic option --- components/esp_system/port/arch/xtensa/panic_arch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_system/port/arch/xtensa/panic_arch.c b/components/esp_system/port/arch/xtensa/panic_arch.c index 6ca03b520c..1db4fb6b38 100644 --- a/components/esp_system/port/arch/xtensa/panic_arch.c +++ b/components/esp_system/port/arch/xtensa/panic_arch.c @@ -44,6 +44,7 @@ void panic_print_registers(const void *f, int core) { XtExcFrame *frame = (XtExcFrame *) f; int *regs = (int *)frame; + (void)regs; const char *sdesc[] = { "PC ", "PS ", "A0 ", "A1 ", "A2 ", "A3 ", "A4 ", "A5 ", @@ -115,6 +116,7 @@ static void print_illegal_instruction_details(const void *f) return; } volatile uint32_t *pepc = (uint32_t *)epc; + (void)pepc; panic_print_str("Memory dump at 0x"); panic_print_hex(epc);