SDL: Merge commit '67d517907bf8662395edf88c2137b8b0bc74d9e8' into main

From 67d517907bf8662395edf88c2137b8b0bc74d9e8 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 12 Jan 2023 00:24:20 +0100
Subject: [PATCH] log: fix unused-variable warning when configuring SDL with
 -DSDL_LIBC=OFF

---
 src/SDL_log.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/SDL_log.c b/src/SDL_log.c
index 6e00a8d41bb8..03049480447c 100644
--- a/src/SDL_log.c
+++ b/src/SDL_log.c
@@ -65,6 +65,11 @@ static SDL_LogOutputFunction SDL_log_function = SDL_LogOutput;
 static void *SDL_log_userdata = NULL;
 static SDL_mutex *log_function_mutex = NULL;
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
+
 static const char *SDL_priority_prefixes[SDL_NUM_LOG_PRIORITIES] = {
     NULL,
     "VERBOSE",
@@ -75,6 +80,10 @@ static const char *SDL_priority_prefixes[SDL_NUM_LOG_PRIORITIES] = {
     "CRITICAL"
 };
 
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+
 #ifdef __ANDROID__
 static const char *SDL_category_prefixes[] = {
     "APP",