From 517df5ccb5289e3159f9cb21d083e945cde97d30 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Tue, 30 Dec 2003 02:20:03 +0000 Subject: [PATCH] glutBitmapString and glutBitmapLength expect (unsigned char *) rather than (char *) suppress gcc in -Wall -pendantic "noise" git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@427 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freeglut_menu.c b/src/freeglut_menu.c index a98a358..3ba5b22 100644 --- a/src/freeglut_menu.c +++ b/src/freeglut_menu.c @@ -362,7 +362,7 @@ static void fghDisplayMenuBox( SFG_Menu* menu ) /* * Have the label drawn, character after character: */ - glutBitmapString( FREEGLUT_MENU_FONT, menuEntry->Text); + glutBitmapString( FREEGLUT_MENU_FONT, (unsigned char *) menuEntry->Text); /* * If it's a submenu, draw a right arrow @@ -675,14 +675,14 @@ void fghCalculateMenuBoxSize( void ) * Update the menu entry's width value */ menuEntry->Width = glutBitmapLength( FREEGLUT_MENU_FONT, - menuEntry->Text ); + (unsigned char *) menuEntry->Text ); /* * If the entry is a submenu, then it needs to be wider to * accomodate the arrow. JCJ 31 July 2003 */ if (menuEntry->SubMenu ) - menuEntry->Width += glutBitmapLength( FREEGLUT_MENU_FONT, "_" ); + menuEntry->Width += glutBitmapLength( FREEGLUT_MENU_FONT, (unsigned char *) "_" ); /* * Check if it's the biggest we've found -- 1.7.10.4