mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 10:18:28 +00:00
Workaround for Visual Studio 2019 const warning
Visual Studio 2022, gcc, and clang all agree that "const SDL_DisplayMode **" is a non-const pointer to const data, but Visual Studio 2019 warns about this, so we'll just add a cast to the SDL_free() call for now. Apparently this was a legitimate bug that has been recently fixed: https://stackoverflow.com/questions/10403713/why-does-visual-c-warn-on-implicit-cast-from-const-void-to-void-in-c-but
This commit is contained in:
parent
6b137579ea
commit
9ff1055489
4 changed files with 6 additions and 6 deletions
|
@ -1162,7 +1162,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
|
|||
}
|
||||
}
|
||||
}
|
||||
SDL_free(modes);
|
||||
SDL_free((void *)modes);
|
||||
|
||||
#if SDL_VIDEO_DRIVER_WINDOWS && !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
|
||||
/* Print the D3D9 adapter index */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue