From 4842f18f1b185c2f52359a900b347c4dcf2aba17 Mon Sep 17 00:00:00 2001 From: ny00123 Date: Sat, 7 Mar 2020 13:51:53 +0000 Subject: [PATCH] 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 --- source/sw/src/game.cpp | 6 +++--- source/sw/src/panel.cpp | 5 +++-- source/sw/src/text.cpp | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index d1a5b3236..a49f9b71b 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -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); diff --git a/source/sw/src/panel.cpp b/source/sw/src/panel.cpp index 098f5c6a3..58721711e 100644 --- a/source/sw/src/panel.cpp +++ b/source/sw/src/panel.cpp @@ -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; } diff --git a/source/sw/src/text.cpp b/source/sw/src/text.cpp index 3d8738540..616a2f69c 100644 --- a/source/sw/src/text.cpp +++ b/source/sw/src/text.cpp @@ -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;