fix(esp_system): suppress compiler warning if ESP_SYSTEM_PANIC_SILENT_REBOOT is enabled

This commit is contained in:
wuzhenghui
2023-09-11 16:30:07 +08:00
parent ddcb5f663c
commit 6fea0260a3
3 changed files with 11 additions and 4 deletions

View File

@@ -75,6 +75,10 @@ extern "C" {
9, 8, 7, 6, 5, 4, 3, 2, 1, 0
#endif
#ifndef ESP_UNUSED
#define ESP_UNUSED(x) ((void)(x))
#endif
/* test macros */
#define foo_args(...) 1
#define foo_no_args() 2