From ef40f9164ca943a89e9fa0e9e13c1faa2da65aa2 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Mon, 2 Nov 2015 14:28:14 +0100 Subject: Fix warnings when compiling WITH_DECKLINK=OFF and WITH_X11_ALPHA=OFF --- intern/ghost/intern/GHOST_WindowX11.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index dd2bb18882b..560a0712b8b 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -168,13 +168,10 @@ static XVisualInfo *x11_visualinfo_from_glx( GLXFBConfig *fbconfig) { XVisualInfo *visual = NULL; - GLXFBConfig *fbconfigs; - int nbfbconfig; GHOST_TUns16 numOfAASamples = *r_numOfAASamples; int glx_major, glx_minor, glx_version; /* GLX version: major.minor */ GHOST_TUns16 actualSamples; int glx_attribs[64]; - int i; *fbconfig = NULL; @@ -207,6 +204,9 @@ static XVisualInfo *x11_visualinfo_from_glx( && (glXGetVisualFromFBConfig || (glXGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC)glXGetProcAddressARB((const GLubyte *)"glXGetVisualFromFBConfig")) != NULL) ) { + GLXFBConfig *fbconfigs; + int nbfbconfig; + int i; for (;;) { -- cgit v1.2.3