silence compiler warnings
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index 7fe7194..a798f3e 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -675,7 +675,7 @@
    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 @@
    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 @@
    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 @@
 {
    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);