From patchwork Mon Aug 24 16:34:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 7065501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E0A02C05AC for ; Mon, 24 Aug 2015 16:30:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2384320786 for ; Mon, 24 Aug 2015 16:30:11 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4C42320784 for ; Mon, 24 Aug 2015 16:30:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A13026E9ED; Mon, 24 Aug 2015 09:30:08 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by gabe.freedesktop.org (Postfix) with ESMTPS id 43C9A6E9EA for ; Mon, 24 Aug 2015 09:30:06 -0700 (PDT) Received: by wicja10 with SMTP id ja10so77065384wic.1 for ; Mon, 24 Aug 2015 09:30:04 -0700 (PDT) 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=bjReGuLrn9paQCgW5NHjG1gTKu5VDhYGInUwar6pf6s=; b=rrmqOqQyz9LektvynsmHwiq5r+WT2uHtB17vIt8Xeu7JmaSHtAaI2NGRMub9Scg427 8HqRIy7e7Qit5sO4u9QmrIVDYJVi32Kykd3QhHFsaHulxszWB+gaUpLf9E/UcwuX+0fG kDnMqBpxDBF2O/pkCZ9u6OvJqgC+B2lxbfn81eweow0EzTpvi8JOFgrHr0CqiSFnt2zy s+XVAE6gR791P6zvKVaFlebYnkhevRPp8tzZ1IjWkVCXBHKUmm/AcI4iz2e8DNsiW1mU EhYez7H6Ocab3xYyre5LR3ZW5yVee3nryQCsiEj/xjQ0qLBxa0girlRYbN4A3LUUNvvL B3Mg== X-Received: by 10.194.93.198 with SMTP id cw6mr43087497wjb.113.1440433804691; Mon, 24 Aug 2015 09:30:04 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by smtp.gmail.com with ESMTPSA id ll1sm16885984wic.14.2015.08.24.09.30.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Aug 2015 09:30:04 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 02/17] modetest: fix shadowing warnings Date: Mon, 24 Aug 2015 17:34:05 +0100 Message-Id: <1440434060-31347-2-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1440434060-31347-1-git-send-email-emil.l.velikov@gmail.com> References: <1440434060-31347-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=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 No real issue here, but let's fix these so that real issues don't get lost in the spam. Signed-off-by: Emil Velikov --- tests/modetest/modetest.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 3a545c3..3b01918 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -589,7 +589,6 @@ static struct resources *get_resources(struct device *dev) #define get_resource(_res, __res, type, Type) \ do { \ - int i; \ for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \ (_res)->type##s[i].type = \ drmModeGet##Type(dev->fd, (_res)->__res->type##s[i]); \ @@ -616,7 +615,6 @@ static struct resources *get_resources(struct device *dev) #define get_properties(_res, __res, type, Type) \ do { \ - int i; \ for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \ struct type *obj = &res->type##s[i]; \ unsigned int j; \ @@ -1301,7 +1299,6 @@ static void test_page_flip(struct device *dev, struct pipe_arg *pipes, unsigned #else struct timeval timeout = { .tv_sec = 3, .tv_usec = 0 }; fd_set fds; - int ret; FD_ZERO(&fds); FD_SET(0, &fds);