[PATCH 11/17] pc386/startup/bsp_fatal_halt.c: Fix noreturn does return warning

Joel Sherrill joel at rtems.org
Wed Mar 9 22:24:56 UTC 2016


---
 c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
index 3e4f263..07bbd79 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
@@ -18,4 +18,7 @@ void _CPU_Fatal_halt(uint32_t source, uint32_t error)
          : "=r" ((error))
          : "0" ((error))
   );
+  #ifdef __GNUC__
+    __builtin_unreachable();
+  #endif
 }
-- 
1.8.3.1




More information about the devel mailing list