From a89bf7ba1d22cd7584e0df04988186e8bd53713b Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 13 May 2009 20:55:55 +0000 Subject: [PATCH] Fix unused variable and warning --- lib/glcomp/glcompbutton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = -- 2.40.0