mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 17:08:49 +00:00
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:
@@ -73,7 +73,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
|
||||
@@ -113,7 +113,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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user