diff --git a/code/botlib/be_ai_chat.c b/code/botlib/be_ai_chat.c index 35366e0f..b1a9bc4f 100644 --- a/code/botlib/be_ai_chat.c +++ b/code/botlib/be_ai_chat.c @@ -1025,7 +1025,6 @@ bot_randomlist_t *BotLoadRandomStrings(char *filename) } //end if while(!PC_CheckTokenString(source, "}")) { - size_t len; if (!BotLoadChatMessage(source, chatmessagestring)) { FreeSource(source); diff --git a/code/cgame/cg_particles.c b/code/cgame/cg_particles.c index 1cd72dc0..2cccaad7 100644 --- a/code/cgame/cg_particles.c +++ b/code/cgame/cg_particles.c @@ -636,7 +636,6 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha) } else if (p->type == P_FLAT_SCALEUP) { - float width, height; float sinR, cosR; if (p->color == BLOODRED) diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c index 3db34bcc..2d5a98fe 100644 --- a/code/client/cl_parse.c +++ b/code/client/cl_parse.c @@ -789,7 +789,6 @@ void CL_ParseVoip ( msg_t *msg ) { } for (i = 0; i < frames; i++) { - char encoded[256]; const int len = MSG_ReadByte(msg); if (len < 0) { Com_DPrintf("VoIP: Short packet!\n"); diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c index 74a42ace..fca5e15f 100644 --- a/code/client/snd_mix.c +++ b/code/client/snd_mix.c @@ -164,7 +164,6 @@ void S_TransferPaintBuffer(int endtime) if ( s_testsound->integer ) { int i; - int count; // write a fixed sine wave count = (endtime - s_paintedtime); diff --git a/code/renderergl1/tr_model_iqm.c b/code/renderergl1/tr_model_iqm.c index 3d2ca3e2..8af77e3e 100644 --- a/code/renderergl1/tr_model_iqm.c +++ b/code/renderergl1/tr_model_iqm.c @@ -206,7 +206,7 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na } vertexarray = (iqmVertexArray_t *)((byte *)header + header->ofs_vertexarrays); for( i = 0; i < header->num_vertexarrays; i++, vertexarray++ ) { - int j, n, *intPtr; + int n, *intPtr; if( vertexarray->size <= 0 || vertexarray->size > 4 ) { return qfalse; diff --git a/code/renderergl2/tr_model_iqm.c b/code/renderergl2/tr_model_iqm.c index 2e6b7655..15e0fe78 100644 --- a/code/renderergl2/tr_model_iqm.c +++ b/code/renderergl2/tr_model_iqm.c @@ -206,7 +206,7 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na } vertexarray = (iqmVertexArray_t *)((byte *)header + header->ofs_vertexarrays); for( i = 0; i < header->num_vertexarrays; i++, vertexarray++ ) { - int j, n, *intPtr; + int n, *intPtr; if( vertexarray->size <= 0 || vertexarray->size > 4 ) { return qfalse; diff --git a/code/renderergl2/tr_world.c b/code/renderergl2/tr_world.c index 0224dbdb..ab447f8a 100644 --- a/code/renderergl2/tr_world.c +++ b/code/renderergl2/tr_world.c @@ -157,7 +157,6 @@ static int R_DlightSurface( msurface_t *surf, int dlightBits ) { if ( surf->cullinfo.type & CULLINFO_PLANE ) { - int i; for ( i = 0 ; i < tr.refdef.num_dlights ; i++ ) { if ( ! ( dlightBits & ( 1 << i ) ) ) { continue; @@ -238,7 +237,6 @@ static int R_PshadowSurface( msurface_t *surf, int pshadowBits ) { if ( surf->cullinfo.type & CULLINFO_PLANE ) { - int i; for ( i = 0 ; i < tr.refdef.num_pshadows ; i++ ) { if ( ! ( pshadowBits & ( 1 << i ) ) ) { continue; diff --git a/code/server/sv_world.c b/code/server/sv_world.c index 665043a0..94868142 100644 --- a/code/server/sv_world.c +++ b/code/server/sv_world.c @@ -257,7 +257,6 @@ void SV_LinkEntity( sharedEntity_t *gEnt ) { if ( gEnt->r.bmodel && (angles[0] || angles[1] || angles[2]) ) { // expand for rotation float max; - int i; max = RadiusFromBounds( gEnt->r.mins, gEnt->r.maxs ); for (i=0 ; i<3 ; i++) {