From 4d9d03a0ebfcd2c929fb7cc69ed4329c388b47e9 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Mon, 5 Sep 2011 17:26:30 +0000 Subject: [PATCH] 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 --- src/freeglut_window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.10.4