From 697634653c2253239ab983fe2e28010c431e0915 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Tue, 9 Jan 2024 22:06:01 +0100 Subject: add [[noreturn]] to panic and freeze --- stage3/halt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stage3/halt.c') diff --git a/stage3/halt.c b/stage3/halt.c index b53a4f2..1015367 100644 --- a/stage3/halt.c +++ b/stage3/halt.c @@ -2,13 +2,13 @@ #include "font.h" #include "pic.h" -void freeze() +[[noreturn]] void freeze() { for (;;) wait_irq(); } -void panic(str msg) +[[noreturn]] void panic(str msg) { print(msg); freeze(); -- cgit v1.2.3