Pārlūkot izejas kodu

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]
Max Seidenstücker 3 nedēļas atpakaļ
vecāks
revīzija
d063cb01e9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      test/testautomation_video.c

+ 1 - 1
test/testautomation_video.c

@@ -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;