From 88aa0d61c6be93f6f268f108ae3f696f112ba0cf Mon Sep 17 00:00:00 2001 From: Christoph Baechler Date: Thu, 13 Jul 2023 17:25:04 +0200 Subject: [PATCH] bugfix: avoid warning in espcoredump when log disabled --- components/espcoredump/src/port/xtensa/core_dump_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/espcoredump/src/port/xtensa/core_dump_port.c b/components/espcoredump/src/port/xtensa/core_dump_port.c index fb4704b3e32..f6a1b11c270 100644 --- a/components/espcoredump/src/port/xtensa/core_dump_port.c +++ b/components/espcoredump/src/port/xtensa/core_dump_port.c @@ -413,7 +413,7 @@ bool esp_core_dump_check_task(core_dump_task_header_t *task) sol_frame->a1); } else { // to avoid warning that 'exc_frame' is unused when ESP_COREDUMP_LOG_PROCESS does nothing - #if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH + #if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH && CONFIG_ESP_COREDUMP_LOGS XtExcFrame *exc_frame = (XtExcFrame *)task->stack_start; ESP_COREDUMP_LOG_PROCESS("Task (TCB:%x) EXIT/PC/PS/A0/SP %x %x %x %x %x", task->tcb_addr,