doom: Fix set-but-unused warnings with GCC16

Change-Id: Iecd8ea9f5dc95f37955bed5e4892a90a93472cc6
This commit is contained in:
Solomon Peachy 2026-05-23 21:22:52 -04:00
parent eb6746c1d6
commit 95df5fdec0
2 changed files with 8 additions and 8 deletions

View file

@ -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 ; i<numtextures ; i++, directory++)
{
@ -555,7 +555,7 @@ void R_InitTextures (void)
texture->widthmask = j-1;
textureheight[i] = texture->height<<FRACBITS;
totalwidth += texture->width;
// totalwidth += texture->width;
}
free(patchlookup); // killough

View file

@ -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--);
}