diff options
author | Kristian H. Kristensen <hoegsberg@google.com> | 2019-04-18 11:30:22 -0700 |
---|---|---|
committer | Kristian H. Kristensen <hoegsberg@gmail.com> | 2019-04-19 16:17:37 +0000 |
commit | 0719fc4c31565a1bfc2188030fd59e0519f18c6d (patch) | |
tree | 4c91bfff691825e0831e4fad507cd042bae0b729 /src | |
parent | b5a3567b51824b7907d757b4bef5348fa864c7b3 (diff) |
egl/dri2: Mark potentially unused 'display' variable with MAYBE_UNUSED
Sometimes there is no X11 platform.
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |