SDL: Fixed Xcode 14.2 warnings

From 237086c91702e77d3b2882f4baf0c75f6a1b711e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 10 Jan 2023 15:51:14 -0800
Subject: [PATCH] Fixed Xcode 14.2 warnings

---
 src/SDL_log.c                       | 5 -----
 src/audio/coreaudio/SDL_coreaudio.m | 2 +-
 src/render/metal/SDL_render_metal.m | 2 +-
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/SDL_log.c b/src/SDL_log.c
index e29a25b11f89..6e00a8d41bb8 100644
--- a/src/SDL_log.c
+++ b/src/SDL_log.c
@@ -478,11 +478,6 @@ static void SDLCALL SDL_LogOutput(void *userdata, int category, SDL_LogPriority
 #if HAVE_STDIO_H && \
     !(defined(__APPLE__) && (defined(SDL_VIDEO_DRIVER_COCOA) || defined(SDL_VIDEO_DRIVER_UIKIT)))
     (void)fprintf(stderr, "%s: %s\n", SDL_priority_prefixes[priority], message);
-#else
-    /* We won't print anything, but reference the priority prefix anyway
-       to avoid a compiler warning.
-     */
-    (void)SDL_priority_prefixes[priority];
 #endif
 }
 
diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m
index 12063c40d358..c70a595f09e3 100644
--- a/src/audio/coreaudio/SDL_coreaudio.m
+++ b/src/audio/coreaudio/SDL_coreaudio.m
@@ -1214,7 +1214,7 @@ static int COREAUDIO_GetDefaultAudioInfo(char **name, SDL_AudioSpec *spec, int i
             /* Some devices have whitespace at the end...trim it. */
             while ((len > 0) && (devname[len - 1] == ' ')) {
                 len--;
-                usable = len;
+                usable = (int)len;
             }
         }
 
diff --git a/src/render/metal/SDL_render_metal.m b/src/render/metal/SDL_render_metal.m
index dec0253a76dd..bce28f18cac4 100644
--- a/src/render/metal/SDL_render_metal.m
+++ b/src/render/metal/SDL_render_metal.m
@@ -1517,7 +1517,7 @@ static int METAL_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd,
         [mtltexture getBytes:temp_pixels bytesPerRow:temp_pitch fromRegion:mtlregion mipmapLevel:0];
 
         temp_format = (mtltexture.pixelFormat == MTLPixelFormatBGRA8Unorm) ? SDL_PIXELFORMAT_ARGB8888 : SDL_PIXELFORMAT_ABGR8888;
-        status = SDL_ConvertPixels(rect->w, rect->h, temp_format, temp_pixels, temp_pitch, pixel_format, pixels, pitch);
+        status = SDL_ConvertPixels(rect->w, rect->h, temp_format, temp_pixels, (int)temp_pitch, pixel_format, pixels, pitch);
         SDL_free(temp_pixels);
         return status;
     }