]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
remove some dead initializations that clang-analyzer found (verified)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2012 19:55:26 +0000 (19:55 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2012 19:55:26 +0000 (19:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11803 d7cf8633-e32d-0410-b094-e92efae38249

cap_ogg.c
gl_rmain.c
world.c

index de3132d14552b539c692260fe7dc7862a98f2eb9..a4913aeb332a05d2eedbae1a5dd4642daade7999 100644 (file)
--- 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;
index 53aba216cd31bb7402ab831010d969128c1437cf..b5c1a02c5eeaef9c3dfa40e15d629b9957182391 100644 (file)
@@ -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 87f901bfbd6ad2eb832bcc8ae09105cf14dd16ce..f7ab6ec453836d3c1baeffe07117103f649b8c83 100644 (file)
--- 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;