From: erg Date: Wed, 13 May 2009 20:55:55 +0000 (+0000) Subject: Fix unused variable and warning X-Git-Tag: LAST_LIBGRAPH~32^2~2083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a89bf7ba1d22cd7584e0df04988186e8bd53713b;p=graphviz Fix unused variable and warning --- diff --git a/lib/glcomp/glcompbutton.c b/lib/glcomp/glcompbutton.c index 4cb7d70e3..b6d096f28 100644 --- a/lib/glcomp/glcompbutton.c +++ b/lib/glcomp/glcompbutton.c @@ -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 =