From: Kristian H. Kristensen Date: Thu, 18 Apr 2019 18:30:22 +0000 (-0700) Subject: egl/dri2: Mark potentially unused 'display' variable with MAYBE_UNUSED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0719fc4c31565a1bfc2188030fd59e0519f18c6d;p=mesa.git egl/dri2: Mark potentially unused 'display' variable with MAYBE_UNUSED Sometimes there is no X11 platform. Signed-off-by: Kristian H. Kristensen Reviewed-by: Ian Romanick Reviewed-by: Emil Velikov --- 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;