summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-05-18 17:12:25 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-05-21 09:31:39 +0100
commit9367223d264bfba5b3aafc01d9b2b554d7d22f62 (patch)
tree190743df72dc8fb5fba61b699a835e0a2e815c03 /overlay
parenteccae1360d6d01e73c6af2bd97122cef708207ef (diff)
intel-gpu-overlay: Fix some build warnings
Trivial "set but unused" cleanup. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay')
-rw-r--r--overlay/x11/x11-overlay.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/overlay/x11/x11-overlay.c b/overlay/x11/x11-overlay.c
index ae649429..ac6b5f39 100644
--- a/overlay/x11/x11-overlay.c
+++ b/overlay/x11/x11-overlay.c
@@ -123,7 +123,6 @@ cairo_surface_t *
x11_overlay_create(struct config *config, int *width, int *height)
{
Display *dpy;
- Screen *scr;
cairo_surface_t *surface;
struct drm_i915_gem_create create;
struct drm_gem_flink flink;
@@ -135,7 +134,6 @@ x11_overlay_create(struct config *config, int *width, int *height)
XvImage *image;
XvPortID port = -1;
void *ptr, *mem;
- enum position position;
dpy = XOpenDisplay(NULL);
if (dpy == NULL)
@@ -143,7 +141,7 @@ x11_overlay_create(struct config *config, int *width, int *height)
XSetErrorHandler(check_error_handler);
- scr = ScreenOfDisplay(dpy, DefaultScreen(dpy));
+ ScreenOfDisplay(dpy, DefaultScreen(dpy));
fd = dri2_open(dpy);
if (fd < 0)
@@ -179,7 +177,7 @@ x11_overlay_create(struct config *config, int *width, int *height)
XSetErrorHandler(noop);
- position = x11_position(dpy, *width, *height, config, &x, &y, &w, &h);
+ x11_position(dpy, *width, *height, config, &x, &y, &w, &h);
image = XvCreateImage(dpy, port, FOURCC_RGB565, NULL, w, h);
if (image == NULL)