Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_11869' into 'master'
Browse files Browse the repository at this point in the history
bugfix: avoid warning in espcoredump when log disabled (GitHub PR)

Closes IDFGH-10636

See merge request espressif/esp-idf!25134
  • Loading branch information
mahavirj committed Aug 9, 2023
2 parents cf53624 + 88aa0d6 commit 3befd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/espcoredump/src/port/xtensa/core_dump_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3befd5f

Please sign in to comment.