From patchwork Mon Oct 6 17:52:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lespiau, Damien" X-Patchwork-Id: 5038851 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6C318C11AB for ; Mon, 6 Oct 2014 17:52:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC0C02015A for ; Mon, 6 Oct 2014 17:52:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9F90E2014A for ; Mon, 6 Oct 2014 17:52:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 930606E3F3; Mon, 6 Oct 2014 10:52:45 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id EBC7C6E30C for ; Mon, 6 Oct 2014 10:52:43 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 06 Oct 2014 10:46:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,664,1406617200"; d="scan'208";a="584268063" Received: from dabattis-mobl1.amr.corp.intel.com (HELO strange.amr.corp.intel.com) ([10.254.96.65]) by orsmga001.jf.intel.com with ESMTP; 06 Oct 2014 10:52:31 -0700 From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Mon, 6 Oct 2014 18:52:26 +0100 Message-Id: <1412617946-18350-2-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1412617946-18350-1-git-send-email-damien.lespiau@intel.com> References: <1412617946-18350-1-git-send-email-damien.lespiau@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/2] overlay: Fix compilation warning when not having xrandr X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Damien Lespiau --- overlay/x11/position.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overlay/x11/position.c b/overlay/x11/position.c index f430281..cd00353 100644 --- a/overlay/x11/position.c +++ b/overlay/x11/position.c @@ -76,10 +76,11 @@ static enum position get_position(struct config *config) static void screen_size(Display *dpy, struct config *config, int *scr_x, int *scr_y, int *scr_width, int *scr_height) { - const char *crtc; Screen *scr; #ifdef HAVE_XRANDR + const char *crtc; + crtc = config_get_value(config, "x11", "crtc"); if (crtc) { XRRScreenResources *res;