Fix -Werror=unused-variable when building with SDL_LIBC=OFF
This commit is contained in:
1 parent
9be69b9365
commit
95dc4fbdd5
1 file changed
+1
@@ -408,6 +408,7 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
|
|||||||
static void dynapi_warn(const char *msg)
|
static void dynapi_warn(const char *msg)
|
||||||
{
|
{
|
||||||
const char *caption = "SDL Dynamic API Failure!";
|
const char *caption = "SDL Dynamic API Failure!";
|
||||||
|
(void)caption;
|
||||||
/* SDL_ShowSimpleMessageBox() is a too heavy for here. */
|
/* SDL_ShowSimpleMessageBox() is a too heavy for here. */
|
||||||
#if (defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
|
#if (defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
|
||||||
MessageBoxA(NULL, msg, caption, MB_OK | MB_ICONERROR);
|
MessageBoxA(NULL, msg, caption, MB_OK | MB_ICONERROR);
|
||||||
|
|||||||
Reference in new issue
Block a user