SW: Mark function parameters as unused in cases we can't easily change

the functions' signatures (often due to being used as callbacks/hooks)

git-svn-id: https://svn.eduke32.com/eduke32@8696 1a8010ca-5511-0410-912e-c29ae57300e0

# Conflicts:
#	source/sw/src/jnstub.cpp
#	source/sw/src/menus.cpp
#	source/sw/src/panel.cpp
#	source/sw/src/text.cpp
This commit is contained in:
ny00123 2020-03-07 13:51:53 +00:00 committed by Christoph Oelckers
parent 3e8dc4e509
commit 4842f18f1b
3 changed files with 8 additions and 6 deletions

View file

@ -1876,21 +1876,21 @@ void gStateControl(STATEp *State, int *tics)
(*(*State)->Animator)(0);
}
int BonusPunchSound(short SpriteNum)
int BonusPunchSound(short UNUSED(SpriteNum))
{
PLAYERp pp = Player + myconnectindex;
PlaySound(DIGI_PLAYERYELL3, pp, v3df_none);
return 0;
}
int BonusKickSound(short SpriteNum)
int BonusKickSound(short UNUSED(SpriteNum))
{
PLAYERp pp = Player + myconnectindex;
PlaySound(DIGI_PLAYERYELL2, pp, v3df_none);
return 0;
}
int BonusGrabSound(short SpriteNum)
int BonusGrabSound(short UNUSED(SpriteNum))
{
PLAYERp pp = Player + myconnectindex;
PlaySound(DIGI_BONUS_GRAB, pp, v3df_none);

View file

@ -120,12 +120,13 @@ int ChangeWeapon(PLAYERp);
ANIMATOR InitFire;
int NullAnimator(short SpriteNum)
int
NullAnimator(short UNUSED(SpriteNum))
{
return 0;
}
void pNullAnimator(PANEL_SPRITEp psp)
void pNullAnimator(PANEL_SPRITEp UNUSED(psp))
{
return;
}

View file

@ -275,7 +275,8 @@ DisplayMiniBarNumber(short xs, short ys, int number)
}
}
void DisplayMiniBarSmString(PLAYERp pp, short xs, short ys, short pal, const char *buffer)
void
DisplayMiniBarSmString(PLAYERp UNUSED(pp), short xs, short ys, short pal, const char *buffer)
{
short size=4,x;
const char *ptr;