[rtems commit] bsps: Simplify bsp_generic_fatal() declaration

Sebastian Huber sebh at rtems.org
Thu Jul 11 08:02:18 UTC 2013


Module:    rtems
Branch:    master
Commit:    5252822cb48b4f2166e888924e20748eab2a6b37
Changeset: http://git.rtems.org/rtems/commit/?id=5252822cb48b4f2166e888924e20748eab2a6b37

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jul 11 10:06:35 2013 +0200

bsps: Simplify bsp_generic_fatal() declaration

---

 c/src/lib/libbsp/shared/include/generic-fatal.h |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/c/src/lib/libbsp/shared/include/generic-fatal.h b/c/src/lib/libbsp/shared/include/generic-fatal.h
index 16a8895..4565271 100644
--- a/c/src/lib/libbsp/shared/include/generic-fatal.h
+++ b/c/src/lib/libbsp/shared/include/generic-fatal.h
@@ -38,14 +38,8 @@ 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_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 );
 }




More information about the vc mailing list