summaryrefslogtreecommitdiff
path: root/src/include/compiler.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2018-09-05 09:37:11 -0600
committerPatrick Georgi <pgeorgi@google.com>2018-09-10 15:02:51 +0000
commit0370bcf40ce3a07e6e2d33b8bcebf28a0ac98807 (patch)
tree8dbdeded229ced4fc7bf7579954798ddfb7d7439 /src/include/compiler.h
parent261d626669ea244a55ec310a11a23ca56b609b51 (diff)
complier.h: add __noreturn and use it in code base
Add a __noreturn macro that wraps __attribute__((noreturn)) and replace current users with the macro. Change-Id: Iddd0728cf79678c3d1c1f7e7946c27375a644a7d Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/28505 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r--src/include/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index e088eb1a51..4df1cab7e6 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -26,5 +26,6 @@
#define __always_unused __attribute__((unused))
#define __must_check __attribute__((warn_unused_result))
#define __weak __attribute__((weak))
+#define __noreturn __attribute__((noreturn))
#endif