[Bf-blender-cvs] [e10884323e3] master: Cleanup: unused variable warning

Campbell Barton noreply at git.blender.org
Fri Apr 26 06:10:25 CEST 2019


Commit: e10884323e3112649d31e54f93c98582cb8cff03
Author: Campbell Barton
Date:   Fri Apr 26 13:02:44 2019 +1000
Branches: master
https://developer.blender.org/rBe10884323e3112649d31e54f93c98582cb8cff03

Cleanup: unused variable warning

===================================================================

M	intern/ghost/intern/GHOST_WindowX11.cpp

===================================================================

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 &&



More information about the Bf-blender-cvs mailing list