mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 10:17:54 +00:00
audio: Fix warning C4701: potentially uninitialized local variable 'isstack' used
This warning is actually wrong, as the variable is only used if the string pointer is valid, in which case it was initialized, but this is needed to quiet MSVC.
(cherry picked from commit fb940fff80)
This commit is contained in:
parent
982b778e45
commit
faed8b620c
1 changed files with 1 additions and 1 deletions
|
|
@ -1502,7 +1502,7 @@ SDL_AudioDevice *SDL_FindPhysicalAudioDeviceByHandle(void *handle)
|
|||
|
||||
const char *SDL_GetAudioDeviceName(SDL_AudioDeviceID devid)
|
||||
{
|
||||
bool isstack;
|
||||
bool isstack = false;
|
||||
char *string = NULL;
|
||||
const char *result = NULL;
|
||||
SDL_AudioDevice *device = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue