From patchwork Fri May 18 16:12:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10411101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 551FF602CB for ; Fri, 18 May 2018 16:12:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 385BB28641 for ; Fri, 18 May 2018 16:12:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CCC228A18; Fri, 18 May 2018 16:12:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7BB3F28A14 for ; Fri, 18 May 2018 16:12:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 25DC26EE33; Fri, 18 May 2018 16:12:33 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id B06146EE2C for ; Fri, 18 May 2018 16:12:31 +0000 (UTC) Received: by mail-wm0-x233.google.com with SMTP id a137-v6so4021956wme.1 for ; Fri, 18 May 2018 09:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=EJ93OcNl40u11YfM4M8xMbFINQdblkHywLzYm8oMz+c=; b=wYtAQJuturCl6aH1L5UE/fKVg5xCYfJEHxs1gHlTOYTJUpiBb5FkNDwjchtRAJF/r9 6WTKAdIXyXt/SkPAbpnwF86hdJ2DcO0iS0xkzt5SE3qlFdoMzrRHNH8HsRLvgi9s763y KUJBhhOwj9cBVZMcehcKKtE49JxhJHMi5DPNJARdu/MyxyhXF9J7+uXB0wXyOsXCPaJ1 aalXvlvEaq7WmS/FJL0hsLmWUvP34hOqU8hiqbAhxFmjcGntmUfR+YIy8ot8KOvyiQXH IeJ+GiBcXNHc89nY6FJdBq+C4RGhWjOvqPxfGbi5ccXJ2Qx36QlLdoUsMpnClKsFRCqr VuYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EJ93OcNl40u11YfM4M8xMbFINQdblkHywLzYm8oMz+c=; b=g8u45AL8+OUwuSqqo265+IyJI7/8vRX8VsNSQaAyuPIi3DZDVyGwceFME45oz1XOdZ XwSoVJcrcjJAG/Vh93t/IytThxvkLsKsubuOcA8dOYRDJaZtsuSXrc937Mvh3F8+FMOr Xi67zWDQRe3hEFEEzr+n921le4Nxs7Lj45VBpC2PzzC08CNLDTX7oLqZtyVfjXQek8Ca jxlBL18kK20OzaoZKTbr/fH7O5W6617kAQ/imw5R+GSCggIBOUCjtkk/CMcsevnDDqDh vOPhas9xqV/U0h579FuNiDBHIL/aTUfMv7Zkb5MqWqdq28DcHVMj/tHVMX7HKcAT37Fm /gqQ== X-Gm-Message-State: ALKqPwekjovq36YuK9Z/WQvciQaeXPaVtNk9vrkImmd38qw8CBlXXfsO NdpzdEbQ9SKY+G9bfi74CK9C9Q== X-Google-Smtp-Source: AB8JxZob6fH95U2S2AZNv7/n/dV20N+SdTiFlIzUC4sZ8PeknvDH84d1S9XH7vF856JuKfhZhTioRw== X-Received: by 2002:a1c:b943:: with SMTP id j64-v6mr4703572wmf.30.1526659950397; Fri, 18 May 2018 09:12:30 -0700 (PDT) Received: from localhost.localdomain ([95.146.151.144]) by smtp.gmail.com with ESMTPSA id j9-v6sm7431981wri.55.2018.05.18.09.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 09:12:29 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Fri, 18 May 2018 17:12:25 +0100 Message-Id: <20180518161225.18218-1-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.17.0 Subject: [Intel-gfx] [PATCH i-g-t] intel-gpu-overlay: Fix some build warnings X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Trivial "set but unused" cleanup. Signed-off-by: Tvrtko Ursulin Reviewed-by: Chris Wilson --- overlay/x11/x11-overlay.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/overlay/x11/x11-overlay.c b/overlay/x11/x11-overlay.c index ae6494295c5a..ac6b5f39a696 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)