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 ++-- stage3/halt.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'stage3') 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(); diff --git a/stage3/halt.h b/stage3/halt.h index 6e7ca34..af4c41e 100644 --- a/stage3/halt.h +++ b/stage3/halt.h @@ -3,7 +3,7 @@ #include "def.h" -void freeze(); -void panic(str msg); +[[noreturn]] void freeze(); +[[noreturn]] void panic(str msg); #endif -- cgit v1.2.3