]> granicus.if.org Git - graphviz/commitdiff
Fix unused variable and warning
authorerg <devnull@localhost>
Wed, 13 May 2009 20:55:55 +0000 (20:55 +0000)
committererg <devnull@localhost>
Wed, 13 May 2009 20:55:55 +0000 (20:55 +0000)
lib/glcomp/glcompbutton.c

index 4cb7d70e3d8ec1b33f1aafd40b6e7c392c5b44aa..b6d096f284ffe48cc3ae053e02b0799061bdb929 100644 (file)
@@ -82,7 +82,7 @@ int glCompSetRemoveButton(glCompSet * s, glCompButton * p)
 {
     int ind = 0;
     int found = 0;
-    for (ind; ind < s->buttoncount ; ind++) 
+    for (; ind < s->buttoncount ; ind++) 
        {
                if ((s->buttons[ind] == p) && found == 0)
                        found = 1;
@@ -190,7 +190,7 @@ int glCompDrawButton(glCompButton * p)
        //draw caption
        fontColor(p->font,p->fontcolor.R, p->fontcolor.G, p->fontcolor.B, p->fontcolor.A);
        /*get the string length*/
-       fontwidth=(GLfloat)glutBitmapLength(GLUT_BITMAP_HELVETICA_12,p->caption);
+       fontwidth=(GLfloat)glutBitmapLength(GLUT_BITMAP_HELVETICA_12,(unsigned char*)p->caption);
 
 
        fontx =