Compilation fixes: Unused variable warnings

This commit is contained in:
toaster 2023-04-11 20:02:39 +01:00
parent a97373cb7a
commit d61d822231
4 changed files with 3 additions and 13 deletions

View file

@ -1955,11 +1955,6 @@ static void Got_LeaveParty(UINT8 **cp,INT32 playernum)
void D_SendPlayerConfig(UINT8 n)
{
const profile_t *pr = PR_GetProfile(cv_lastprofile[n].value);
UINT8 buf[4];
UINT8 *p = buf;
SendNameAndColor(n);
WeaponPref_Send(n);
}

View file

@ -46,7 +46,6 @@ profile_t* PR_MakeProfile(
boolean guest)
{
profile_t *new = Z_Malloc(sizeof(profile_t), PU_STATIC, NULL);
UINT8 i;
new->version = PROFILEVER;
@ -392,10 +391,7 @@ void PR_LoadProfiles(void)
// Profile update 5-->6: PWR isn't in profile data anymore.
if (version < 6)
{
for (j = 0; j < PWRLV_NUMTYPES; j++)
{
READUINT16(save.p);
}
save.p += PWRLV_NUMTYPES*2;
profilesList[i]->wins = 0;
}
else

View file

@ -553,7 +553,6 @@ void K_SetPowerLevelScrambles(SINT8 powertype)
void K_PlayerForfeit(UINT8 playerNum, boolean pointLoss)
{
profile_t *pr;
UINT8 p = 0;
SINT8 powerType = PWRLV_DISABLED;

View file

@ -96,7 +96,8 @@ void SV_LoadStats(void)
save.p += headerlen;
UINT8 version = READUINT8(save.p);
(void)version; // for now
numtracked = READUINT32(save.p);
SV_ExpandStats(numtracked);
@ -109,7 +110,6 @@ void SV_SaveStats(void)
{
size_t length = 0;
const size_t headerlen = strlen(SERVERSTATSHEADER);
UINT8 i;
savebuffer_t save = {0};
if (!server)