From d38b88fbb9c06cba0fba9b6a9e3509862ecb8d33 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sat, 7 Mar 2026 22:06:44 -0500 Subject: [PATCH] Warning cleanup --- src/lua_hudlib.c | 1 + src/r_draw_column.cpp | 6 +++--- src/r_main.cpp | 3 --- src/r_patchrotation.c | 1 + src/r_things.cpp | 4 ++-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index edc324c24..2f2c304f7 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -748,6 +748,7 @@ static int libd_drawAffine(lua_State *L) lua_getfield(L, LUA_REGISTRYINDEX, "HUD_DRAW_LIST"); huddrawlist_h list = lua_touserdata(L, -1); + (void)list; lua_pop(L, 1); //if (LUA_HUD_IsDrawListValid(list)) diff --git a/src/r_draw_column.cpp b/src/r_draw_column.cpp index 5aa3b9195..f9a3b9aae 100644 --- a/src/r_draw_column.cpp +++ b/src/r_draw_column.cpp @@ -589,9 +589,9 @@ static void R_DrawAffineColumnTemplate(drawcolumndata_t *dc) intptr_t frac; // Looks familiar. const intptr_t fracstep = dc->iscale; - const intptr_t heightmask = dc->sourcelength-1; // CPhipps - specify type - constexpr INT32 npow2min = -1; - const INT32 npow2max = dc->sourcelength; + //const intptr_t heightmask = dc->sourcelength-1; // CPhipps - specify type + //constexpr INT32 npow2min = -1; + //const INT32 npow2max = dc->sourcelength; // Framebuffer destination address. // SoM: MAGIC diff --git a/src/r_main.cpp b/src/r_main.cpp index 1f6e9f080..d40a377d1 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -202,9 +202,6 @@ consvar_t cv_fakerollangle = CVAR_INIT ("fakerollangle", "Off", CV_SAVE, CV_OnOf consvar_t cv_affineprescale = CVAR_INIT ("affineprescale", "Off", CV_SAVE, CV_OnOff, NULL); consvar_t cv_affinemosaic = CVAR_INIT ("affinemosaic", "Off", CV_SAVE, CV_OnOff, NULL); -static CV_PossibleValue_t affineangle_cons_t[] = {{0, "MIN"}, {360 * FRACUNIT, "MAX"}, {0, NULL}}; -static CV_PossibleValue_t affinetest_cons_t[] = {{0, "Off"}, {1, "On"}, {2, "Auto"}, {0, NULL}}; - void SplitScreen_OnChange(void) { UINT8 i; diff --git a/src/r_patchrotation.c b/src/r_patchrotation.c index ca854dcaf..581ce37af 100644 --- a/src/r_patchrotation.c +++ b/src/r_patchrotation.c @@ -164,6 +164,7 @@ vector2_t* R_RotateSpriteOffsetsByPitchRoll( { fixed_t rotcos, rotsin, finx, finy; vector2_t xvec, yvec; + (void)affine; // input offsets fixed_t xoffs, yoffs, xpiv, ypiv; diff --git a/src/r_things.cpp b/src/r_things.cpp index 289f97c95..15843c241 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -2081,7 +2081,7 @@ static void R_ProjectSprite(mobj_t *thing) // Affines boolean affinesprite = (((thing->player != NULL) || R_ThingIsAffineSprite(thing)) && (!splat)); affine_t affine_transform = {0}; - affine_bounding_t affine_bounds = {0}; + affine_bounding_t affine_bounds = {}; vector2_t affine_scale = {0}; vector2_t affine_distscale = {0}; f_vector2_t affine_pivotoffsetdiff = {0}; @@ -2928,7 +2928,7 @@ static void R_ProjectSprite(mobj_t *thing) vis->viewpoint.z = viewz; vis->viewpoint.angle = viewangle; - vis->affine = {0}; + vis->affine = {}; if (affinesprite) {