Removing compiler warnings in MSVC 2005 build

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@725 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2007-09-21 04:32:59 +00:00
parent 55c6100806
commit 74802d3f21
3 changed files with 3 additions and 3 deletions

View File

@ -720,7 +720,7 @@ void FGAPIENTRY glutInitDisplayString( const char* displayMode )
* delimited by blanks or tabs. * delimited by blanks or tabs.
*/ */
char *token ; char *token ;
int len = strlen ( displayMode ); size_t len = strlen ( displayMode );
char *buffer = (char *)malloc ( (len+1) * sizeof(char) ); char *buffer = (char *)malloc ( (len+1) * sizeof(char) );
memcpy ( buffer, displayMode, len ); memcpy ( buffer, displayMode, len );
buffer[len] = '\0'; buffer[len] = '\0';

View File

@ -1548,7 +1548,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
{ {
SFG_Window* window; SFG_Window* window;
PAINTSTRUCT ps; PAINTSTRUCT ps;
LONG lRet = 1; LRESULT lRet = 1;
FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED ( "Event Handler" ) ; FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED ( "Event Handler" ) ;

View File

@ -47,7 +47,7 @@
int FGAPIENTRY glutExtensionSupported( const char* extension ) int FGAPIENTRY glutExtensionSupported( const char* extension )
{ {
const char *extensions, *start; const char *extensions, *start;
const int len = strlen( extension ); const size_t len = strlen( extension );
/* Make sure there is a current window, and thus a current context available */ /* Make sure there is a current window, and thus a current context available */
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutExtensionSupported" ); FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutExtensionSupported" );