From 4f6da8dc0f6b96c214a9f7b190de4a181ee59a01 Mon Sep 17 00:00:00 2001 From: Zwip-Zwap Zapony Date: Sun, 10 Sep 2023 16:10:32 +0200 Subject: [PATCH] Fix a "maybe-uninitialized" compiler warning --- src/r_things.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_things.c b/src/r_things.c index be9c5cdff..8fabb8027 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -3201,8 +3201,8 @@ static boolean R_CheckSpriteVisible(vissprite_t *spr, INT32 x1, INT32 x2) INT16 sz = spr->sz; INT16 szt = spr->szt; - fixed_t texturemid, yscale, scalestep = spr->scalestep; - INT32 height; + fixed_t texturemid = 0, yscale = 0, scalestep = spr->scalestep; // "= 0" pleases the compiler + INT32 height = 0; if (scalestep) {