From: John F. Fay Date: Mon, 5 Sep 2011 17:26:30 +0000 (+0000) Subject: Addressing bug report 3368139 about warnings under OpenSUSE. I added two explicit... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=4d9d03a0ebfcd2c929fb7cc69ed4329c388b47e9;p=freeglut Addressing bug report 3368139 about warnings under OpenSUSE. I added two explicit casts and an initialization. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@937 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 41b039e..a5884ae 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -1076,7 +1076,7 @@ static void get_display_origin(int *xp,int *yp) #if TARGET_HOST_POSIX_X11 static Bool fghWindowIsVisible( Display *display, XEvent *event, XPointer arg) { - Window window = arg; + Window window = (Window)arg; return (event->type == MapNotify) && (event->xmap.window == window); } #endif @@ -1092,7 +1092,7 @@ void fgOpenWindow( SFG_Window* window, const char* title, GLboolean gameMode, GLboolean isSubWindow ) { #if TARGET_HOST_POSIX_X11 - XVisualInfo * visualInfo; + XVisualInfo * visualInfo = NULL; XSetWindowAttributes winAttr; XTextProperty textProperty; XSizeHints sizeHints; @@ -1297,7 +1297,7 @@ void fgOpenWindow( SFG_Window* window, const char* title, XFree(visualInfo); if( !isSubWindow) - XPeekIfEvent( fgDisplay.Display, &eventReturnBuffer, &fghWindowIsVisible, window->Window.Handle ); + XPeekIfEvent( fgDisplay.Display, &eventReturnBuffer, &fghWindowIsVisible, (XPointer)(window->Window.Handle) ); #elif TARGET_HOST_MS_WINDOWS