From db23e4966e6704f9e7b65b8d6a612ab240cc4bb8 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Thu, 3 Feb 2022 19:51:19 -0800 Subject: [PATCH] [kernel] Make panic noreturn This keeps clang from complaining about other noreturn functions calling panic::panic(). --- src/kernel/assert.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel/assert.h b/src/kernel/assert.h index 9bf88cb..555f225 100644 --- a/src/kernel/assert.h +++ b/src/kernel/assert.h @@ -13,6 +13,7 @@ constexpr uint32_t send_nmi_command = extern uint32_t *apic_icr; extern void const *symbol_table; +[[ noreturn ]] __attribute__ ((always_inline)) inline void panic( const char *message = nullptr,