Fix -Werror=unused-variable when building with SDL_LIBC=OFF

This commit is contained in:
Anonymous Maarten 2023-03-27 19:47:20 +02:00
parent 9be69b9365
commit 95dc4fbdd5
1 changed files with 1 additions and 0 deletions

View File

@ -408,6 +408,7 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
static void dynapi_warn(const char *msg)
{
const char *caption = "SDL Dynamic API Failure!";
(void)caption;
/* SDL_ShowSimpleMessageBox() is a too heavy for here. */
#if (defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
MessageBoxA(NULL, msg, caption, MB_OK | MB_ICONERROR);