mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
fix(esp_system): suppress compiler warning if ESP_SYSTEM_PANIC_SILENT_REBOOT is enabled
This commit is contained in:
@@ -26,6 +26,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef ESP_UNUSED
|
||||||
|
#define ESP_UNUSED(x) ((void)(x))
|
||||||
|
#endif
|
||||||
|
|
||||||
extern bool g_panic_abort;
|
extern bool g_panic_abort;
|
||||||
|
|
||||||
extern void *g_exc_frames[SOC_CPU_CORES_NUM];
|
extern void *g_exc_frames[SOC_CPU_CORES_NUM];
|
||||||
@@ -70,10 +74,10 @@ void panic_print_str(const char *str);
|
|||||||
void panic_print_dec(int d);
|
void panic_print_dec(int d);
|
||||||
void panic_print_hex(int h);
|
void panic_print_hex(int h);
|
||||||
#else
|
#else
|
||||||
#define panic_print_char(c)
|
#define panic_print_char(c) ESP_UNUSED(c)
|
||||||
#define panic_print_str(str)
|
#define panic_print_str(str) ESP_UNUSED(str)
|
||||||
#define panic_print_dec(d)
|
#define panic_print_dec(d) ESP_UNUSED(d)
|
||||||
#define panic_print_hex(h)
|
#define panic_print_hex(h) ESP_UNUSED(h)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void __attribute__((noreturn)) panic_abort(const char *details);
|
void __attribute__((noreturn)) panic_abort(const char *details);
|
||||||
|
@@ -0,0 +1,2 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32"
|
||||||
|
CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT=y
|
Reference in New Issue
Block a user