Commit a4a80c86077c4e2de005f02b6102666c22821df3

Sylvain 2022-03-09T15:21:55

Fix variable may be uninitialized when used here [-Wconditional-uninitialized]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 33cde9b..bd7d44f 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2451,9 +2451,9 @@ SDL_SetWindowFullscreen(SDL_Window * window, Uint32 flags)
 static SDL_Surface *
 SDL_CreateWindowFramebuffer(SDL_Window * window)
 {
-    Uint32 format;
+    Uint32 format = 0;
     void *pixels = NULL;
-    int pitch;
+    int pitch = 0;
     int bpp;
     Uint32 Rmask, Gmask, Bmask, Amask;
     SDL_bool created_framebuffer = SDL_FALSE;