Remove unused varibales

src/g_cmds.c:2095:10: warning: unused variable ‘vel’ [-Wunused-variable]
src/g_cmds.c:2094:10: warning: unused variable ‘pos’ [-Wunused-variable]
src/g_trigger.c:1422:10: warning: unused variable ‘endpos’ [-Wunused-variable]
src/p_client.c:1277:15: warning: unused variable ‘nostatus’ [-Wunused-variable]
src/p_client.c:2247:10: warning: unused variable ‘weapon’ [-Wunused-variable]
This commit is contained in:
Denis Pauk 2021-01-30 18:52:45 +02:00
parent 701b470ded
commit c30b70ea00
3 changed files with 50 additions and 55 deletions

View file

@ -2091,8 +2091,6 @@ void ClientCommand (edict_t *ent)
}
else if(!Q_stricmp(cmd, "playsound"))
{
vec3_t pos = {0, 0, 0};
vec3_t vel = {0, 0, 0};
if(s_primary->value)
{
gi.dprintf("target_playback requires s_primary be set to 0.\n"

View file

@ -1419,7 +1419,6 @@ void trigger_look_touch (edict_t *self, edict_t *other, cplane_t *plane, csurfac
// Then trigger only fires if looking at TARGET, not trigger bbox
edict_t *target;
int num_triggered=0;
vec3_t endpos;
target = G_Find(NULL,FOFS(targetname),self->target);
while(target && !num_triggered)

View file

@ -1274,7 +1274,6 @@ a deathmatch.
*/
void PutClientInServer (edict_t *ent)
{
extern int nostatus;
vec3_t mins = {-16, -16, -24};
vec3_t maxs = {16, 16, 32};
int index;
@ -2244,7 +2243,6 @@ void ClientSpycam(edict_t *ent)
}
else if(is_actor)
{
int weapon = camera->actor_weapon[camera->actor_current_weapon];
if(!camera->enemy)
{
edict_t *target;