summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-01-03 16:31:34 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-01-07 13:55:51 +0100
commita4f4ddf56c77f84fc41e1eac6fca23a0d9cc0e33 (patch)
treeee0f46168935382f10da11426599850d40ebb8a1
parentae39a05620706af3a3a6590baa66729ae6bde6e1 (diff)
mi: Fix shadow warnings
Based off a xserver commit from Yaakov Selkowitz: http://cgit.freedesktop.org/xorg/xserver/commit/mi/mispans.c?id=f02e27e4fcc34413b2051e5a01edc92172fa8612
-rw-r--r--common/lines.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/lines.c b/common/lines.c
index 5b26662..4f404f1 100644
--- a/common/lines.c
+++ b/common/lines.c
@@ -806,8 +806,6 @@ miFillUniqueSpanGroup (GCPtr pGC, SpanGroup * spanGroup, Boolean foreground)
newwidths = xrealloc (newspans->widths,
ysizes[index] * sizeof (int));
if (!newpoints || !newwidths) {
- int i;
-
for (i = 0; i < ylength; i++) {
xfree (yspans[i].points);
xfree (yspans[i].widths);
@@ -838,8 +836,6 @@ miFillUniqueSpanGroup (GCPtr pGC, SpanGroup * spanGroup, Boolean foreground)
points = (DDXPointRec*)xalloc (count * sizeof (DDXPointRec));
widths = (int *)xalloc (count * sizeof (int));
if (!points || !widths) {
- int i;
-
for (i = 0; i < ylength; i++) {
xfree (yspans[i].points);
xfree (yspans[i].widths);