4.3.10 __noreturn Keyword

The __noreturn keyword can be used on a function to inform the compiler that the function will not return.

Suggested Replacement

__attribute__((noreturn))

Caveats

None.

Examples

Consider migrating IAR code such as:

__noreturn void foo();
to MPLAB XC codes similar to:
__attribute__((noreturn)) void foo();

Further Information

None.