Fixed error: returning 'SDL_TrayEntry **' from a function with incompatible return type 'const SDL_TrayEntry **'

This commit is contained in:
Sam Lantinga
2025-01-06 11:35:54 -08:00
parent f8b13dadd7
commit 8d8649b33f
3 changed files with 3 additions and 3 deletions

View File

@@ -281,7 +281,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
if (size) {
*size = menu->nEntries;
}
return menu->entries;
return (const SDL_TrayEntry **)menu->entries;
}
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)

View File

@@ -494,7 +494,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
if (size) {
*size = menu->nEntries;
}
return menu->entries;
return (const SDL_TrayEntry **)menu->entries;
}
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)

View File

@@ -310,7 +310,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
if (size) {
*size = menu->nEntries;
}
return menu->entries;
return (const SDL_TrayEntry **)menu->entries;
}
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)