From c6c4cd8b6f1b4b34ad84bdb31095458bde011fb0 Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Tue, 13 Jan 2004 01:11:09 +0000 Subject: silence compiler warnings --- src/mesa/tnl/t_save_loopback.c | 2 +- src/mesa/tnl/t_vertex.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mesa/tnl/t_save_loopback.c b/src/mesa/tnl/t_save_loopback.c index e1a60baaca..fec0ea5b64 100644 --- a/src/mesa/tnl/t_save_loopback.c +++ b/src/mesa/tnl/t_save_loopback.c @@ -169,7 +169,7 @@ static void index_attr1fv(GLcontext *ctx, GLint target, const GLfloat *v) static void edgeflag_attr1fv(GLcontext *ctx, GLint target, const GLfloat *v) { - ctx->Exec->EdgeFlag((v[0] == 1.0)); + ctx->Exec->EdgeFlag((GLboolean)(v[0] == 1.0)); } struct loopback_attr { diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c index 7fe7194a3d..a798f3e149 100644 --- a/src/mesa/tnl/t_vertex.c +++ b/src/mesa/tnl/t_vertex.c @@ -675,7 +675,7 @@ static void generic_emit( GLcontext *ctx, struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); struct tnl_clipspace_attr *a = vtx->attr; GLubyte *v = (GLubyte *)dest; - int i, j; + GLuint i, j; GLuint count = vtx->attr_count; GLuint stride; @@ -717,7 +717,7 @@ static void generic_interp( GLcontext *ctx, if (tnl->NeedNdcCoords) { const GLfloat *dstclip = VB->ClipPtr->data[edst]; if (dstclip[3] != 0.0) { - const GLfloat w = 1.0 / dstclip[3]; + const GLfloat w = 1.0f / dstclip[3]; GLfloat pos[4]; pos[0] = dstclip[0] * w; @@ -923,7 +923,7 @@ void _tnl_get_attr( GLcontext *ctx, const void *vin, int j; for (j = 0; j < attr_count; j++) { - if (a[j].attrib == attr) { + if (a[j].attrib == (int)attr) { a[j].extract( &a[j], dest, (GLubyte *)vin + a[j].vertoffset ); return; } @@ -958,7 +958,7 @@ GLuint _tnl_install_attrs( GLcontext *ctx, const struct tnl_attr_map *map, { struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); int offset = 0; - int i; + GLuint i; assert(nr < _TNL_ATTRIB_MAX); assert(nr == 0 || map[0].attrib == VERT_ATTRIB_POS); -- cgit v1.2.3