From e08020e5063e31db4a7be2f1845fe25933419a7a Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 19 Apr 2012 19:55:26 +0000 Subject: [PATCH] remove some dead initializations that clang-analyzer found (verified) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11803 d7cf8633-e32d-0410-b094-e92efae38249 --- cap_ogg.c | 2 +- gl_rmain.c | 3 +-- world.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cap_ogg.c b/cap_ogg.c index de3132d1..a4913aeb 100644 --- a/cap_ogg.c +++ b/cap_ogg.c @@ -828,7 +828,7 @@ static void SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV(void) yuv_buffer *yuv; int x, y; int blockr, blockg, blockb; - unsigned char *b = cls.capturevideo.outbuffer; + unsigned char *b; int w = cls.capturevideo.width; int h = cls.capturevideo.height; int inpitch = w*4; diff --git a/gl_rmain.c b/gl_rmain.c index 53aba216..b5c1a02c 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -11457,13 +11457,12 @@ static void R_DrawDebugModel(void) { int triangleindex; int bihleafindex; - qboolean cullbox = ent == r_refdef.scene.worldentity; + qboolean cullbox = false; const q3mbrush_t *brush; const bih_t *bih = &model->collision_bih; const bih_leaf_t *bihleaf; float vertex3f[3][3]; GL_PolygonOffset(r_refdef.polygonfactor + r_showcollisionbrushes_polygonfactor.value, r_refdef.polygonoffset + r_showcollisionbrushes_polygonoffset.value); - cullbox = false; for (bihleafindex = 0, bihleaf = bih->leafs;bihleafindex < bih->numleafs;bihleafindex++, bihleaf++) { if (cullbox && R_CullBox(bihleaf->mins, bihleaf->maxs)) diff --git a/world.c b/world.c index 87f901bf..f7ab6ec4 100644 --- a/world.c +++ b/world.c @@ -2108,7 +2108,7 @@ static void World_Physics_Frame_BodyFromEntity(world_t *world, prvm_edict_t *ed) prvm_prog_t *prog = world->prog; const float *iv; const int *ie; - dBodyID body = (dBodyID)ed->priv.server->ode_body; + dBodyID body; dMass mass; const dReal *ovelocity, *ospinvelocity; void *dataID; -- 2.39.2