compiler: replaced noreturn by __noreturn__ in header files

* noreturn may be replaced by third-party macros,
  rendering it ineffective

* Closes https://github.com/espressif/esp-idf/issues/11339
This commit is contained in:
Jakob Hasse
2023-05-11 10:40:49 +08:00
committed by Marius Vikhammer
parent 550c5b4195
commit fa099f23f3
13 changed files with 35 additions and 71 deletions

View File

@@ -72,7 +72,7 @@ esp_err_t esp_unregister_shutdown_handler(shutdown_handler_t handle);
* Peripherals (except for Wi-Fi, BT, UART0, SPI1, and legacy timers) are not reset.
* This function does not return.
*/
void esp_restart(void) __attribute__ ((noreturn));
void esp_restart(void) __attribute__ ((__noreturn__));
/**
* @brief Get reason of last reset
@@ -112,7 +112,7 @@ uint32_t esp_get_minimum_free_heap_size( void );
*
* @param details Details that will be displayed during panic handling.
*/
void __attribute__((noreturn)) esp_system_abort(const char* details);
void __attribute__((__noreturn__)) esp_system_abort(const char* details);
#ifdef __cplusplus
}