From 5ff7149dc14d2f39cfe73af892c7c416777c283f Mon Sep 17 00:00:00 2001 From: kichikuou Date: Thu, 28 Nov 2024 10:21:18 +0900 Subject: [PATCH] Fix a compiler warning --- src/sdl_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl_video.c b/src/sdl_video.c index 4264897..c640182 100644 --- a/src/sdl_video.c +++ b/src/sdl_video.c @@ -155,7 +155,7 @@ static void makeDIB(int width, int height, int depth) { SDL_FreeSurface(sdl_dib); } - uint32_t format; + uint32_t format = 0; switch (depth) { case 8: format = SDL_PIXELFORMAT_INDEX8;