From patchwork Thu Aug 29 20:31:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 2851799 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F3B959F88A for ; Fri, 30 Aug 2013 05:31:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31094201FE for ; Fri, 30 Aug 2013 05:31:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 61943201EC for ; Fri, 30 Aug 2013 05:31:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 412B7E79F7 for ; Thu, 29 Aug 2013 22:31:50 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by gabe.freedesktop.org (Postfix) with ESMTP id E108FE7911 for ; Thu, 29 Aug 2013 13:32:55 -0700 (PDT) Received: by mail-ee0-f50.google.com with SMTP id d51so487399eek.23 for ; Thu, 29 Aug 2013 13:32:53 -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=/pR7ROzpmzWBUYauOFW8ezXMnhKQaUz18yCtCAIh66M=; b=soRAXLWnQyLMWIheUj4cKDULub98PbbW6ZAuB4QuMOE0HW5jN0iYV23qx+xa98Jbc7 GhctvxJRDdSBTrb0+kV6rbc/gCj0l/BGQWtefC5dbsL5FfTWm3hq/NuYTb/hJerYdO3+ vJ6eeMMGLUWrXJhExwu8wOlroYbFPDGKQnRcoXxNQ/QvxEY4wzFvrLzaHI69AAIo1IkY c954jS2v99Y53UsfLDp6XE8RJ9JCnooMmmzg7o3VLnC787SXFEEhs3fG5fVgfO8xCjrO DHhVtIyewii2HOfrzM5kXp77J7/EjzEZmMhhcYvf3+CrKN2i1F6w7WaqBr0NEVrKxHdl xMIg== X-Received: by 10.15.45.8 with SMTP id a8mr6811836eew.1.1377808373886; Thu, 29 Aug 2013 13:32:53 -0700 (PDT) Received: from localhost.localdomain (cpc20-stap10-2-0-cust563.12-2.cable.virginmedia.com. [82.20.130.52]) by mx.google.com with ESMTPSA id h52sm49080065eez.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Aug 2013 13:32:53 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/6] tests/modetest: silence compiler warning about uninitialised variables Date: Thu, 29 Aug 2013 21:31:51 +0100 Message-Id: <1377808314-30699-4-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1377808314-30699-1-git-send-email-emil.l.velikov@gmail.com> References: <1377808314-30699-1-git-send-email-emil.l.velikov@gmail.com> X-Mailman-Approved-At: Thu, 29 Aug 2013 22:26:48 -0700 Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-6.2 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 The compiler is unaware of that we have at least one crts/connector/plane thus it complains that some of our variables will be used uninitialised. Signed-off-by: Emil Velikov Reviewed-by: Rob Clark --- This patch looks like a rather silly thing to do, although it seems like the only was to silence the gcc compiler --- tests/modetest/modetest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index f96b930..ed604b4 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -781,7 +781,7 @@ static struct crtc *pipe_find_crtc(struct device *dev, struct pipe_arg *pipe) static int pipe_find_crtc_and_mode(struct device *dev, struct pipe_arg *pipe) { - drmModeModeInfo *mode; + drmModeModeInfo *mode = NULL; int i; pipe->mode = NULL; @@ -838,8 +838,8 @@ struct property_arg { static void set_property(struct device *dev, struct property_arg *p) { - drmModeObjectProperties *props; - drmModePropertyRes **props_info; + drmModeObjectProperties *props = NULL; + drmModePropertyRes **props_info = NULL; const char *obj_type; int ret; int i;