From: havoc Date: Mon, 28 Mar 2011 10:48:22 +0000 (+0000) Subject: fix some warnings X-Git-Tag: xonotic-v0.6.0~163^2~569 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=74030f9019b473fad1fad0d67f4dd89975df38b5;p=xonotic%2Fdarkplaces.git fix some warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10977 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 12ab2bb5..6efe27a6 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -2468,7 +2468,7 @@ void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const rtligh float *v3f, *t2f, *c4f; particletexture_t *tex; float up2[3], v[3], right[3], up[3], fog, ifog, size, len, lenfactor, alpha; - float ambient[3], diffuse[3], diffusenormal[3]; +// float ambient[3], diffuse[3], diffusenormal[3]; float palpha, spintime, spinrad, spincos, spinsin, spinm1, spinm2, spinm3, spinm4, baseright[3], baseup[3]; vec4_t colormultiplier; float minparticledist_start, minparticledist_end; diff --git a/gl_rsurf.c b/gl_rsurf.c index 2ece8bd0..06d8fb03 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -957,7 +957,6 @@ static void R_Q1BSP_RecursiveGetLightInfo_BIH(r_q1bsp_getlightinfo_t *info, cons int surfaceindex; int t; int nodeleafindex; - const int *nodeleaflist; int currentmaterialflags; qboolean castshadow; msurface_t *surface; @@ -979,7 +978,6 @@ static void R_Q1BSP_RecursiveGetLightInfo_BIH(r_q1bsp_getlightinfo_t *info, cons node = bih->nodes + nodenum; if (node->type == BIH_UNORDERED) { - nodeleaflist = node->children; for (nodeleafindex = 0;nodeleafindex < BIH_MAXUNORDEREDCHILDREN && node->children[nodeleafindex] >= 0;nodeleafindex++) { leaf = bih->leafs + node->children[nodeleafindex];