From 95df5fdec04a347eaf92ef9ec76eb502c8f1cbb6 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 23 May 2026 21:22:52 -0400 Subject: [PATCH] doom: Fix set-but-unused warnings with GCC16 Change-Id: Iecd8ea9f5dc95f37955bed5e4892a90a93472cc6 --- apps/plugins/doom/r_data.c | 6 +++--- apps/plugins/doom/r_draw.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/plugins/doom/r_data.c b/apps/plugins/doom/r_data.c index 17800f231c..01393bf7fc 100644 --- a/apps/plugins/doom/r_data.c +++ b/apps/plugins/doom/r_data.c @@ -398,7 +398,7 @@ void R_InitTextures (void) const unsigned char *names; // cph - const char *name_p;// const*'s int *patchlookup; - int totalwidth; +// int totalwidth; int nummappatches; int offset; int maxoff, maxoff2; @@ -465,7 +465,7 @@ void R_InitTextures (void) textures = Z_Malloc(numtextures*sizeof*textures, PU_STATIC, 0); textureheight = Z_Malloc(numtextures*sizeof*textureheight, PU_STATIC, 0); - totalwidth = 0; +// totalwidth = 0; for (i=0 ; iwidthmask = j-1; textureheight[i] = texture->height<width; +// totalwidth += texture->width; } free(patchlookup); // killough diff --git a/apps/plugins/doom/r_draw.c b/apps/plugins/doom/r_draw.c index 8208972a66..4991a94b45 100644 --- a/apps/plugins/doom/r_draw.c +++ b/apps/plugins/doom/r_draw.c @@ -324,8 +324,8 @@ void R_DrawFuzzColumn(void) { int count; byte *dest; - fixed_t frac; - fixed_t fracstep; +// fixed_t frac; +// fixed_t fracstep; // Adjust borders. Low... if (!dc_yl) @@ -356,8 +356,8 @@ void R_DrawFuzzColumn(void) dest = topleft + dc_yl*SCREENWIDTH + dc_x; // Looks familiar. - fracstep = dc_iscale; - frac = dc_texturemid + (dc_yl-centery)*fracstep; +// fracstep = dc_iscale; +// frac = dc_texturemid + (dc_yl-centery)*fracstep; // Looks like an attempt at dithering, // using the colormap #6 (of 0-31, a bit brighter than average). @@ -383,7 +383,7 @@ void R_DrawFuzzColumn(void) dest += SCREENWIDTH; - frac += fracstep; +// frac += fracstep; } while (count--); }