Fixed warning C4090: 'function': different 'const' qualifiers

This commit is contained in:
Sam Lantinga
2024-07-19 15:38:41 -07:00
parent 64cb431ead
commit aafbbe4ebc
4 changed files with 7 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ static const SDL_Locale * const *build_locales_from_csv_string(char *csv, int *c
size_t alloclen;
char *ptr;
SDL_Locale *loc;
const SDL_Locale **retval;
SDL_Locale **retval;
if (count) {
*count = 0;
@@ -52,7 +52,7 @@ static const SDL_Locale * const *build_locales_from_csv_string(char *csv, int *c
slen = ((size_t)(ptr - csv)) + 1; /* SDL_strlen(csv) + 1 */
alloclen = (num_locales * sizeof(SDL_Locale *)) + (num_locales * sizeof(SDL_Locale)) + slen;
retval = (const SDL_Locale **)SDL_calloc(1, alloclen);
retval = (SDL_Locale **)SDL_calloc(1, alloclen);
if (!retval) {
return NULL; /* oh well */
}