From patchwork Tue Feb 26 14:15:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sedat Dilek X-Patchwork-Id: 2185541 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 9B2B2DF215 for ; Tue, 26 Feb 2013 14:15:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8184AE5F92 for ; Tue, 26 Feb 2013 06:15:40 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-bk0-f42.google.com (mail-bk0-f42.google.com [209.85.214.42]) by gabe.freedesktop.org (Postfix) with ESMTP id 570A1E5CFA for ; Tue, 26 Feb 2013 06:15:31 -0800 (PST) Received: by mail-bk0-f42.google.com with SMTP id jk7so1897107bkc.1 for ; Tue, 26 Feb 2013 06:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=1OgW2VH9SrxHqub2YJ8fLFQpY6v+jKBVs2uFNkY7EpA=; b=m7jz4HU5lK360CPXBBIwSGpOGQlxvMEGPbVsMBDpLsyZm+/sSCca1Ft3fT284sdP0p ulrxSKHyZJFksZiTmEG4YndbqpWQs7LmHupVVC+ELzu2kk8t5S/WA+GMX8rO5+aSTVTE Bs2GONf4Vzkgwhs3M4vydqO5MPX7YGOTzKAmSqEvXiOmIPaAXgchZ35c+oekKBC0s4N+ bPLqLxCOivx3ctwABdd/225sB+dBKj2PBK5tUy0lxrD2Wy9fcIGuDEVDlBy28ftl7FJd G88uoIIfKgHqyjhZdyWXp19uiCjJ5NgfVrzqylnIvOwtysg0sDw7mQJgTn0MJxn4JHdC ut7g== X-Received: by 10.204.8.212 with SMTP id i20mr6837934bki.14.1361888130435; Tue, 26 Feb 2013 06:15:30 -0800 (PST) Received: from fambox.fritz.box (p5DE56118.dip.t-dialin.net. [93.229.97.24]) by mx.google.com with ESMTPS id n1sm4830349bkv.14.2013.02.26.06.15.28 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Feb 2013 06:15:29 -0800 (PST) From: Sedat Dilek To: Chris Wilson , intel-gfx Date: Tue, 26 Feb 2013 15:15:17 +0100 Message-Id: <1361888117-19708-1-git-send-email-sedat.dilek@gmail.com> X-Mailer: git-send-email 1.8.1.4 Cc: Sedat Dilek Subject: [Intel-gfx] [PATCH] sna: Initialize variable 'iter' to silence clang X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Signed-off-by: Sedat Dilek --- src/sna/sna_damage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c index ab693af..53ed635 100644 --- a/src/sna/sna_damage.c +++ b/src/sna/sna_damage.c @@ -410,7 +410,7 @@ static void __sna_damage_reduce(struct sna_damage *damage) int n, nboxes; BoxPtr boxes, free_boxes = NULL; pixman_region16_t *region = &damage->region; - struct sna_damage_box *iter; + struct sna_damage_box *iter = NULL; assert(damage->mode != DAMAGE_ALL); assert(damage->dirty); @@ -1671,7 +1671,7 @@ void _sna_damage_debug_get_region(struct sna_damage *damage, RegionRec *r) { int n, nboxes; BoxPtr boxes; - struct sna_damage_box *iter; + struct sna_damage_box *iter = NULL; RegionCopy(r, &damage->region); if (!damage->dirty)