Browse Source

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

Sylvain 3 years ago
parent
commit
a4a80c8607
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/video/SDL_video.c

+ 2 - 2
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;