From 5ce4e91296a8f633a34ca5a865696491a6b32add Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 3 Mar 2009 20:57:42 +0000 Subject: [PATCH] Fix some gcc warnings in rasterize.cpp: remove unused variables, rename shadowing variables, make a function static, change depth type to same of the variable it is tested against. --- desmume/src/rasterize.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index 23e4d5bbd..4d1ee83c7 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -171,7 +171,6 @@ struct Fragment }; static VERT* verts[MAX_CLIPPED_VERTS]; -static VERT* sortedVerts[MAX_CLIPPED_VERTS]; INLINE static void SubmitVertex(int vert_index, VERT& rawvert) { @@ -391,11 +390,11 @@ static void alphaBlend(Fragment::Color & dst, const Fragment::Color & src) } } -void pixel(int adr,float r, float g, float b, float invu, float invv, float w, float z) { +static void pixel(int adr,float r, float g, float b, float invu, float invv, float w, float z) { Fragment &destFragment = screen[adr]; //depth test - int depth; + u32 depth; if(gfx3d.wbuffer) //not sure about this //this value was chosen to make the skybox, castle window decals, and water level render correctly in SM64 @@ -859,7 +858,6 @@ static void SoftRastGetLineCaptured(int line, u16* dst) { Fragment* src = screen+((191-line)<<8); for(int i=0;i<256;i++) { - const bool testRenderAlpha = false; u8 r = src->color.components.r; u8 g = src->color.components.g; u8 b = src->color.components.b; @@ -1146,15 +1144,15 @@ static void SoftRastRender() //here is a hack which needs to be removed. //at some point our shape engine needs these to be converted to "fixed point" //which is currently just a float - for(int i=0;ipolyAttr); - for(int i=0;i