From 9544651fb39deefb2dd1aed9113af3b60898a1bb Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 12 Mar 2025 14:32:33 +0100
Subject: [PATCH] Fix "'function': different 'const' qualifiers" warning
---
src/sdl2_compat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 0620ecd..772fc33 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -7000,7 +7000,7 @@ static int GetNumAudioDevices(int iscapture)
newlist.num_devices = num_devices;
newlist.devices = (AudioDeviceInfo *) SDL3_malloc(sizeof (AudioDeviceInfo) * num_devices);
if (!newlist.devices) {
- SDL3_free(orignames);
+ SDL3_free((void*) orignames);
SDL3_free(devices);
return list->num_devices; /* just return the existing one for now. Oh well. */
}
@@ -7040,7 +7040,7 @@ static int GetNumAudioDevices(int iscapture)
for (j = 0; j < (i-1); j++) {
SDL3_free(newlist.devices[j].name);
}
- SDL3_free(orignames);
+ SDL3_free((void*) orignames);
SDL3_free(devices);
return list->num_devices; /* just return the existing one for now. Oh well. */
}
@@ -7049,7 +7049,7 @@ static int GetNumAudioDevices(int iscapture)
newlist.devices[i].name = fullname;
}
- SDL3_free(orignames);
+ SDL3_free((void*) orignames);
}
for (i = 0; i < list->num_devices; i++) {