diff options
author | Brian Paul <[email protected]> | 2002-11-01 23:45:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-11-01 23:45:30 +0000 |
commit | a85fae9cb0ee1f7f24fbf4d41c62fe771673ef2f (patch) | |
tree | df18947016c82856bd791de4e0f425ccb1199746 /src/glu/sgi/libtess | |
parent | 034e8641bb2e3a8ff9b313719ba3c44282bf07c1 (diff) |
silence a bunch of warnings
Diffstat (limited to 'src/glu/sgi/libtess')
-rw-r--r-- | src/glu/sgi/libtess/normal.c | 8 | ||||
-rw-r--r-- | src/glu/sgi/libtess/sweep.c | 5 | ||||
-rw-r--r-- | src/glu/sgi/libtess/tess.c | 8 |
3 files changed, 13 insertions, 8 deletions
diff --git a/src/glu/sgi/libtess/normal.c b/src/glu/sgi/libtess/normal.c index ed4cb087295..618cfd9ccf4 100644 --- a/src/glu/sgi/libtess/normal.c +++ b/src/glu/sgi/libtess/normal.c @@ -35,8 +35,8 @@ /* ** Author: Eric Veach, July 1994. ** -** $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $ -** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/normal.c,v 1.1 2001/03/17 00:25:41 brianp Exp $ +** $Date: 2002/11/01 23:45:31 $ $Revision: 1.2 $ +** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/normal.c,v 1.2 2002/11/01 23:45:31 brianp Exp $ */ #include "gluos.h" @@ -51,6 +51,7 @@ #define Dot(u,v) (u[0]*v[0] + u[1]*v[1] + u[2]*v[2]) +#if 0 static void Normalize( GLdouble v[3] ) { GLdouble len = v[0]*v[0] + v[1]*v[1] + v[2]*v[2]; @@ -61,6 +62,7 @@ static void Normalize( GLdouble v[3] ) v[1] /= len; v[2] /= len; } +#endif #define ABS(x) ((x) < 0 ? -(x) : (x)) @@ -198,7 +200,7 @@ extern int RandomSweep; void __gl_projectPolygon( GLUtesselator *tess ) { GLUvertex *v, *vHead = &tess->mesh->vHead; - GLdouble w, norm[3]; + GLdouble norm[3]; GLdouble *sUnit, *tUnit; int i, computedNormal = FALSE; diff --git a/src/glu/sgi/libtess/sweep.c b/src/glu/sgi/libtess/sweep.c index 831120ba52c..96e8a05c68e 100644 --- a/src/glu/sgi/libtess/sweep.c +++ b/src/glu/sgi/libtess/sweep.c @@ -35,8 +35,8 @@ /* ** Author: Eric Veach, July 1994. ** -** $Date: 2001/09/20 21:47:52 $ $Revision: 1.2 $ -** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/sweep.c,v 1.2 2001/09/20 21:47:52 kschultz Exp $ +** $Date: 2002/11/01 23:45:31 $ $Revision: 1.3 $ +** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/sweep.c,v 1.3 2002/11/01 23:45:31 brianp Exp $ */ #include "gluos.h" @@ -1174,7 +1174,6 @@ static void InitEdgeDict( GLUtesselator *tess ) static void DoneEdgeDict( GLUtesselator *tess ) { ActiveRegion *reg; - int fixedEdges = 0; /* __GL_DICTLISTKEY */ /* __GL_DICTLISTMIN */ while( (reg = (ActiveRegion *)dictKey( dictMin( tess->dict ))) != NULL ) { diff --git a/src/glu/sgi/libtess/tess.c b/src/glu/sgi/libtess/tess.c index c920235c660..0793106334f 100644 --- a/src/glu/sgi/libtess/tess.c +++ b/src/glu/sgi/libtess/tess.c @@ -35,8 +35,8 @@ /* ** Author: Eric Veach, July 1994. ** -** $Date: 2001/09/20 21:47:52 $ $Revision: 1.2 $ -** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/tess.c,v 1.2 2001/09/20 21:47:52 kschultz Exp $ +** $Date: 2002/11/01 23:45:31 $ $Revision: 1.3 $ +** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/tess.c,v 1.3 2002/11/01 23:45:31 brianp Exp $ */ #include "gluos.h" @@ -169,6 +169,8 @@ static void GotoState( GLUtesselator *tess, enum TessState newState ) CALL_ERROR_OR_ERROR_DATA( GLU_TESS_MISSING_BEGIN_CONTOUR ); gluTessBeginContour( tess ); break; + default: + ; } } else { switch( tess->state ) { @@ -181,6 +183,8 @@ static void GotoState( GLUtesselator *tess, enum TessState newState ) /* gluTessEndPolygon( tess ) is too much work! */ MakeDormant( tess ); break; + default: + ; } } } |