From 3da3e2897f071bc8b679663271c62ab676512f38 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 4 Mar 2025 13:26:29 +0100 Subject: [PATCH] add noreturn keyword to error function --- src/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.c b/src/error.c index d4da557..effa67f 100644 --- a/src/error.c +++ b/src/error.c @@ -26,7 +26,7 @@ gamestatus get_gamestatus(void) { return status; } -void debug(char const* fmt, ...) { +void debug(char const* restrict fmt, ...) { char const* env = getenv("DEBUG"); if (env == NULL || *env != '1') return;