From patchwork Mon Feb 23 14:56:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5865761 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5D0959F169 for ; Mon, 23 Feb 2015 14:53:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 792A820567 for ; Mon, 23 Feb 2015 14:53:46 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A22D22062D for ; Mon, 23 Feb 2015 14:53:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CB2F76E41D; Mon, 23 Feb 2015 06:53:43 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTP id E6F6D6E41A for ; Mon, 23 Feb 2015 06:53:40 -0800 (PST) Received: by mail-wi0-f178.google.com with SMTP id em10so17660616wid.5 for ; Mon, 23 Feb 2015 06:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mx8Lu3sEViZ1OWV0ogLH6cj60byosli2XG5NctxIuI8=; b=I7oZ6P4+tLAZOXiMJMHacDb0nJE9sv2zlmubuKJ7qIYhADMa1Nbl3ntC94T4sojPz6 p55Y2/P/6k5zXH8Fo0b02QUSaaq6OuW4S4HtvQbwVmwVolTaKNzkja4fxFTKcwnl4VDN uyzq8d+otY/mSmr2nUcewEpZc2Dm2zxFfewvHAs6OiaaSemBnMVcnbdWST/YQU2P0pRk pE3FpXn+SKvw6iYwbars1+lggBUN5t2M5h8O1wkWZNTKz9u78nYsDc5tyTtwJ5uzykT5 Ojva27jf4PypCIji//aIESRaBVCD3dKOOPU7XwrpIOERrvgWFIXziCU933i9WbkkaVw7 9+VQ== X-Received: by 10.180.187.97 with SMTP id fr1mr6745023wic.1.1424703220218; Mon, 23 Feb 2015 06:53:40 -0800 (PST) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id jg3sm16240799wid.0.2015.02.23.06.53.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Feb 2015 06:53:39 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 1/4] tests: remove unused variables Date: Mon, 23 Feb 2015 14:56:32 +0000 Message-Id: <1424703395-7596-2-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424703395-7596-1-git-send-email-emil.l.velikov@gmail.com> References: <1424703395-7596-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 As kindly pointed out by GCC. Signed-off-by: Emil Velikov --- tests/name_from_fd.c | 3 +-- tests/updatedraw.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/name_from_fd.c b/tests/name_from_fd.c index e3db413..24af6e6 100644 --- a/tests/name_from_fd.c +++ b/tests/name_from_fd.c @@ -40,8 +40,7 @@ */ int main(int argc, char **argv) { - int fd, ret; - drm_set_version_t sv, version; + int fd; const char *name = "/dev/dri/card0"; char *v; diff --git a/tests/updatedraw.c b/tests/updatedraw.c index 8e0b94b..d01fa96 100644 --- a/tests/updatedraw.c +++ b/tests/updatedraw.c @@ -122,7 +122,7 @@ static int rm_drawable(int fd, int drawable, int fail) */ int main(int argc, char **argv) { - int fd, ret, d1, d2; + int fd, d1, d2; if (getuid() != 0) { fprintf(stderr, "updatedraw test requires root, skipping\n");