variable conditionally uninitialized

currentX and currentY in L2263-L2264 are marked as conditionally uninitialized by MSVC and Clang

Clang: variable may be uninitialized when used here [-Wconditional-uninitialized]
This commit is contained in:
Max Seidenstücker
2026-02-08 06:57:57 +01:00
committed by Sam Lantinga
parent 8ee7dc2f9f
commit d063cb01e9

View File

@@ -1955,7 +1955,7 @@ static int SDLCALL video_getSetWindowState(void *arg)
SDL_Rect display;
SDL_WindowFlags flags;
int windowedX, windowedY;
int currentX, currentY;
int currentX = 0, currentY = 0;
int desiredX = 0, desiredY = 0;
int windowedW, windowedH;
int currentW, currentH;