[Intel-gfx] [PATCH] sna: Initialize variable 'iter' to silence clang
Sedat Dilek
sedat.dilek at gmail.com
Tue Feb 26 15:15:17 CET 2013
Signed-off-by: Sedat Dilek <sedat.dilek at gmail.com>
---
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)
--
1.8.1.4
More information about the Intel-gfx
mailing list