sdl2-compat: Fix warning C4090: 'function': different 'const' qualifiers'

From bb68fada3e626ace0b1873948ceafd8f4bcf0a57 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 6 Aug 2024 17:08:59 +0200
Subject: [PATCH] Fix warning C4090: 'function': different 'const' qualifiers'

---
 src/sdl2_compat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index c7b2b46..e7e2b03 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -6015,7 +6015,7 @@ SDL_GetNumDisplayModes(int displayIndex)
     const SDL_DisplayMode **list;
     list = SDL_GetDisplayModeList(displayID, &count);
     if (list) {
-        SDL3_free(list);
+        SDL3_free((void *) list);
         return count;
     }
     return -1;
@@ -6080,7 +6080,7 @@ SDL_GetDisplayMode(int displayIndex, int modeIndex, SDL2_DisplayMode *mode)
         }
         ret = 0;
     }
-    SDL3_free(list);
+    SDL3_free((void *) list);
     return ret;
 }