From e10884323e3112649d31e54f93c98582cb8cff03 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Apr 2019 13:02:44 +1000 Subject: Cleanup: unused variable warning --- intern/ghost/intern/GHOST_WindowX11.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 5e47a52e7df..5e686e4d355 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -113,6 +113,9 @@ static XVisualInfo *x11_visualinfo_from_glx(Display *display, return NULL; } glx_version = glx_major * 100 + glx_minor; +#ifndef WITH_X11_ALPHA + (void)glx_version; +#endif #ifdef WITH_X11_ALPHA if (needAlpha && glx_version >= 103 && -- cgit v1.2.3