Fixes a warning in panic.c when this panic mode is enabled.
#include <xtensa/config/core.h>
#include "freertos/xtensa_api.h"
-void esp_gdbstub_panic_handler(XtExcFrame *frame);
+void esp_gdbstub_panic_handler(XtExcFrame *frame) __attribute__((noreturn));
-#endif
\ No newline at end of file
+#endif
esp_core_dump_to_uart(frame);
#endif
reconfigureAllWdts();
-#endif
+#endif /* CONFIG_ESP32_ENABLE_COREDUMP */
esp_panic_wdt_stop();
#if CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT
panicPutStr("Rebooting...\r\n");
disableAllWdts();
panicPutStr("CPU halted.\r\n");
while (1);
-#endif
-#endif
+#endif /* CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT */
+#endif /* CONFIG_ESP32_PANIC_GDBSTUB */
}