Commit cce1bf84 authored by Evan Ramos's avatar Evan Ramos
Browse files

SW: Fix unused variable and unused parameter warnings

parent 25f35b3f
......@@ -55,17 +55,17 @@ short AttackOrRun = 200;
#define CHOOSE2(value) (RANDOM_P2(1024) < (value))
void DebugMoveHit(short SpriteNum)
void DebugMoveHit(short /*SpriteNum*/)
{
#if 0
SPRITEp sp;
USERp u = User[SpriteNum];
return;
//if (u->ret == -1)
// printf("Hit a ledge\n");
//else
/*
#if 0
if (u->ret == -1)
printf("Hit a ledge\n");
else
#endif
switch (TEST(u->ret, HIT_MASK))
{
case HIT_SPRITE:
......@@ -89,7 +89,7 @@ void DebugMoveHit(short SpriteNum)
}
MONO_PRINT(ds);
*/
#endif
}
......@@ -314,7 +314,7 @@ CanHitPlayer(short SpriteNum)
SPRITEp sp = User[SpriteNum]->SpriteP, hp;
hitdata_t hitinfo;
int xvect,yvect,zvect;
short ang,ret=FALSE;
short ang;
// if actor can still see the player
int zhs, zhh;
......
......@@ -349,11 +349,6 @@ void DebugWriteLoc(char *fname, int line)
fflush(debug_fout);
}
void Mono_Print(char *str)
{
MONO_PRINT(str);
}
extern SWBOOL DrawScreen;
#if RANDOM_DEBUG
......@@ -2974,9 +2969,8 @@ dsprintf(char *str, char *format, ...)
}
void
dsprintf_null(char *str, const char *format, ...)
dsprintf_null(char * /*str*/, const char * /*format*/, ...)
{
va_list arglist;
}
void getinput(SW_PACKET *, SWBOOL);
......@@ -3346,7 +3340,7 @@ int DetectShareware(void)
}
void CommandLineHelp(char const * const * argv)
void CommandLineHelp(char const * const * /*argv*/)
{
int i;
#if 1 /* defined RENDERTYPEWIN */
......
......@@ -3785,9 +3785,8 @@ dsprintf(char *str, char *format, ...)
}
void
dsprintf_null(char *str, const char *format, ...)
dsprintf_null(char * /*str*/, const char * /*format*/, ...)
{
va_list arglist;
}
......
......@@ -37,7 +37,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
//#if DEBUG
void
PokeStringMono(uint8_t Attr, uint8_t* String)
PokeStringMono(uint8_t /*Attr*/, uint8_t* String)
{
fprintf(stderr,"MONO: %s\n",String);
#if 0
......
......@@ -2881,7 +2881,7 @@ static char SaveGameInfo1[80];
static char SaveGameInfo2[80];
SWBOOL
MNU_LoadSaveMove(UserCall call, MenuItem_p item)
MNU_LoadSaveMove(UserCall /*call*/, MenuItem_p /*item*/)
{
short i;
short game_num;
......
......@@ -134,7 +134,6 @@ void netsendpacket(int ind, uint8_t* buf, int len)
{
uint8_t bbuf[sizeof(packbuf) + sizeof(PACKET_PROXY)];
PACKET_PROXYp prx = (PACKET_PROXYp)bbuf;
int i;
// send via master if in M/S mode and we are not the master, and the recipient is not the master and not ourselves
if (!NetBroadcastMode && myconnectindex != connecthead && ind != myconnectindex && ind != connecthead)
......@@ -147,7 +146,7 @@ void netsendpacket(int ind, uint8_t* buf, int len)
#ifdef NET_DEBUG_MSGS
buildprintf("netsendpacket() sends proxy to %d\nPlayerIndex=%d Contents:",connecthead,ind);
for (i=0; i<len; i++)
for (int i=0; i<len; i++)
buildprintf(" %02x", buf[i]);
buildputs("\n");
#endif
......@@ -165,7 +164,7 @@ void netsendpacket(int ind, uint8_t* buf, int len)
#ifdef NET_DEBUG_MSGS
buildprintf("netsendpacket() sends normal to %d\nContents:",ind);
for (i=0; i<len; i++)
for (int i=0; i<len; i++)
buildprintf(" %02x", buf[i]);
buildputs("\n");
#endif
......
......@@ -1781,10 +1781,8 @@ ACTOR_ACTION_SET PlayerNinjaActionSet =
};
int
DoHariKariBlood(short SpriteNum)
DoHariKariBlood(short /*SpriteNum*/)
{
SPRITEp sp = &sprite[SpriteNum];
USERp u = User[SpriteNum];
return 0;
}
......@@ -2122,9 +2120,6 @@ int CheckFire(short SpriteNum)
int
DoNinjaCeiling(short SpriteNum)
{
USERp u = User[SpriteNum];
SPRITEp sp = User[SpriteNum]->SpriteP;
DoActorSectorDamage(SpriteNum);
return 0;
......
......@@ -1133,7 +1133,7 @@ SetVisNorm(void)
return 0;
}
void pSetVisNorm(PANEL_SPRITEp psp)
void pSetVisNorm(PANEL_SPRITEp /*psp*/)
{
// SetVisNorm();
}
......@@ -7717,8 +7717,6 @@ MoveSkipSavePos(void)
void PlayerTimers(PLAYERp pp)
{
SPRITEp sp = pp->SpriteP;
InventoryTimer(pp);
}
......
......@@ -428,9 +428,6 @@ int DoRotatorMove(short SpriteNum)
int DoRotator(short SpriteNum)
{
USERp u = User[SpriteNum];
SPRITEp sp = u->SpriteP;
// could move this inside sprite control
DoRotatorMove(SpriteNum);
......
......@@ -917,13 +917,15 @@ OperateSector(short sectnum, short player_is_operating)
}
int
OperateWall(short wallnum, short player_is_operating)
OperateWall(short /*wallnum*/, short /*player_is_operating*/)
{
#if 0
WALLp wallp = &wall[wallnum];
switch (LOW_TAG_WALL(wallnum))
{
}
#endif
return FALSE;
}
......@@ -1192,15 +1194,13 @@ DoSpawnSpotsForDamage(short match)
}
void
DoSoundSpotMatch(short match, short sound_num, short sound_type)
DoSoundSpotMatch(short match, short sound_num, short /*sound_type*/)
{
short sn, next_sn;
SPRITEp sp;
int flags;
short snd2play;
//sound_type is not used
sound_num--;
ASSERT(sound_num >= 0);
......
......@@ -674,10 +674,6 @@ int DoSlidorMove(short SpriteNum)
int DoSlidor(short SpriteNum)
{
USERp u = User[SpriteNum];
SPRITEp sp = u->SpriteP;
SECTORp sectp = &sector[sp->sectnum];
DoSlidorMove(SpriteNum);
return 0;
......
......@@ -788,7 +788,7 @@ void LockSound(int num)
}
}
SWBOOL CacheSound(int num, int type)
SWBOOL CacheSound(int num, int /*type*/)
{
VOC_INFOp vp = &voc[num];
......
......@@ -734,9 +734,6 @@ int InitSumoCharge(short SpriteNum)
int DoSumoRumble(short SpriteNum)
{
SPRITEp sp = &sprite[SpriteNum];
USERp u = User[SpriteNum];
SetSumoQuake(SpriteNum);
return 0;
......
......@@ -10508,13 +10508,13 @@ DoBoltSeeker(int16_t Weapon)
}
 
int
DoBoltShrapnel(int16_t Weapon)
DoBoltShrapnel(int16_t /*Weapon*/)
{
return 0;
}
 
int
DoBoltFatMan(int16_t Weapon)
DoBoltFatMan(int16_t /*Weapon*/)
{
return 0;
}
......@@ -11762,9 +11762,6 @@ InitMineShrap(short SpriteNum)
 
int DoMineExp(short SpriteNum)
{
SPRITEp sp = &sprite[SpriteNum];
USERp u = User[SpriteNum];
DoExpDamageTest(SpriteNum);
//InitMineShrap(SpriteNum);
 
......@@ -12482,7 +12479,7 @@ DoBloodWorm(int16_t Weapon)
#endif
 
int
DoMeteor(int16_t Weapon)
DoMeteor(int16_t /*Weapon*/)
{
return FALSE;
}
......@@ -13060,7 +13057,7 @@ DoSerpRing(int16_t Weapon)
}
 
int
InitLavaFlame(short SpriteNum)
InitLavaFlame(short /*SpriteNum*/)
{
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment