[U-Boot] [PATCH] sandbox: mark os_exit as noreturn

Mike Frysinger vapier at gentoo.org
Sun Feb 26 23:46:33 CET 2012


Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 include/os.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/os.h b/include/os.h
index aea4503..35ef9b0 100644
--- a/include/os.h
+++ b/include/os.h
@@ -95,7 +95,7 @@ int os_close(int fd);
  *
  * @param exit_code	exit code for U-Boot
  */
-void os_exit(int exit_code);
+void os_exit(int exit_code) __attribute__((noreturn));
 
 /**
  * Put tty into raw mode to mimic serial console better
-- 
1.7.8.4



More information about the U-Boot mailing list