SDL: annotate no return

From 8b53b77058c25833db981ba94dec416fe40b6fcc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Max=20Seidenst=C3=BCcker?= <[EMAIL REDACTED]>
Date: Fri, 6 Feb 2026 19:24:51 +0100
Subject: [PATCH] annotate no return

Clang: function could be declared with attribute 'noreturn' [-Wmissing-noreturn]
---
 test/testfile.c              | 2 +-
 test/testgpu_spinning_cube.c | 2 +-
 test/testhaptic.c            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/testfile.c b/test/testfile.c
index 8c188726d4927..e49ce824462ce 100644
--- a/test/testfile.c
+++ b/test/testfile.c
@@ -50,7 +50,7 @@ cleanup(void)
     unlink(FBASENAME2);
 }
 
-static void
+static SDL_NORETURN void
 iostrm_error_quit(unsigned line, SDL_IOStream *iostrm)
 {
     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "testfile.c(%d): failed", line);
diff --git a/test/testgpu_spinning_cube.c b/test/testgpu_spinning_cube.c
index c262e66f00f94..0391af5e54577 100644
--- a/test/testgpu_spinning_cube.c
+++ b/test/testgpu_spinning_cube.c
@@ -386,7 +386,7 @@ static void shutdownGPU(void)
 
 
 /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
-static void
+static SDL_NORETURN void
 quit(int rc)
 {
     shutdownGPU();
diff --git a/test/testhaptic.c b/test/testhaptic.c
index d617db5907292..304ef677e47c5 100644
--- a/test/testhaptic.c
+++ b/test/testhaptic.c
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
 /**
  * Cleans up a bit.
  */
-static void
+static SDL_NORETURN void
 abort_execution(void)
 {
     SDL_Log("%s", "");