From: havoc Date: Sat, 23 Aug 2003 05:13:31 +0000 (+0000) Subject: fixed a couple warnings X-Git-Tag: xonotic-v0.1.0preview~6427 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a779efbb12b8cf5ab70fc5f68ac2a1a73b5dff1;p=xonotic%2Fdarkplaces.git fixed a couple warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3404 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 7e4221b4..52b5c9b5 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -431,11 +431,10 @@ void CL_SpawnDecalParticleForPoint(const vec3_t org, float maxdist, float size, int i; float bestfrac, bestorg[3], bestnormal[3]; float frac, v[3], normal[3], org2[3]; - void *besthitent; #ifdef WORKINGLQUAKE - void *hitent; + void *besthitent = NULL, *hitent; #else - entity_render_t *hitent; + entity_render_t *besthitent = NULL, *hitent; #endif bestfrac = 10; for (i = 0;i < 32;i++) diff --git a/collision.c b/collision.c index 4418bc66..196dd408 100644 --- a/collision.c +++ b/collision.c @@ -349,7 +349,6 @@ colbrushf_t *Collision_NewBrushFromPlanes(mempool_t *mempool, int numoriginalpla if (numplanes >= 256) { Con_Printf("Mod_Q3BSP_LoadBrushes: failed to build collision brush: too many planes for buffer\n"); - Winding_Free(w); return NULL; }