libbsp/shared/generic-fatal.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to bsp_f

This commit is contained in:
Joel Sherrill
2013-07-10 12:38:12 -05:00
parent e183211be1
commit 79363a1d56

View File

@@ -38,6 +38,13 @@ typedef enum {
BSP_GENERIC_FATAL_CONSOLE_NO_DEV
} bsp_generic_fatal_code;
/*
* Prototype this method to ensure that the compiler knows that
* it does not return.
*/
static inline void bsp_generic_fatal( bsp_generic_fatal_code code ) \
RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
static inline void bsp_generic_fatal( bsp_generic_fatal_code code )
{
rtems_fatal( RTEMS_FATAL_SOURCE_BSP_GENERIC, (rtems_fatal_code) code );