Mesa (master): egl/dri2: Mark potentially unused 'display' variable with MAYBE_UNUSED
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 19 16:29:19 UTC 2019
Module: Mesa
Branch: master
Commit: 0719fc4c31565a1bfc2188030fd59e0519f18c6d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0719fc4c31565a1bfc2188030fd59e0519f18c6d
Author: Kristian H. Kristensen <hoegsberg at google.com>
Date: Thu Apr 18 11:30:22 2019 -0700
egl/dri2: Mark potentially unused 'display' variable with MAYBE_UNUSED
Sometimes there is no X11 platform.
Signed-off-by: Kristian H. Kristensen <hoegsberg at google.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
---
src/egl/drivers/dri2/egl_dri2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 9d8a4d9cf71..d584bccdebe 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -115,7 +115,7 @@ static GLboolean
dri_is_thread_safe(void *loaderPrivate)
{
struct dri2_egl_surface *dri2_surf = loaderPrivate;
- _EGLDisplay *display = dri2_surf->base.Resource.Display;
+ MAYBE_UNUSED _EGLDisplay *display = dri2_surf->base.Resource.Display;
#ifdef HAVE_X11_PLATFORM
Display *xdpy = (Display*)display->PlatformDisplay;
More information about the mesa-commit
mailing list