mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-28 04:53:41 +03:00
Fixed warning that nLeft is set but not used
This commit is contained in:
parent
59d67fa68a
commit
89d2cdfcfa
|
@ -341,7 +341,10 @@ splitlists(
|
||||||
|
|
||||||
PixelList *l, *r, *c, *n;
|
PixelList *l, *r, *c, *n;
|
||||||
int i;
|
int i;
|
||||||
int nRight, nLeft;
|
int nRight;
|
||||||
|
#ifndef NO_OUTPUT
|
||||||
|
int nLeft;
|
||||||
|
#endif
|
||||||
int splitColourVal;
|
int splitColourVal;
|
||||||
|
|
||||||
#ifdef TEST_SPLIT
|
#ifdef TEST_SPLIT
|
||||||
|
@ -396,12 +399,17 @@ splitlists(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
nCount[0] = nCount[1] = 0;
|
nCount[0] = nCount[1] = 0;
|
||||||
nLeft = nRight = 0;
|
nRight = 0;
|
||||||
|
#ifndef NO_OUTPUT
|
||||||
|
nLeft = 0;
|
||||||
|
#endif
|
||||||
for (left = 0, c = h[axis]; c;) {
|
for (left = 0, c = h[axis]; c;) {
|
||||||
left = left + c->count;
|
left = left + c->count;
|
||||||
nCount[0] += c->count;
|
nCount[0] += c->count;
|
||||||
c->flag = 0;
|
c->flag = 0;
|
||||||
|
#ifndef NO_OUTPUT
|
||||||
nLeft++;
|
nLeft++;
|
||||||
|
#endif
|
||||||
c = c->next[axis];
|
c = c->next[axis];
|
||||||
if (left * 2 > pixelCount) {
|
if (left * 2 > pixelCount) {
|
||||||
break;
|
break;
|
||||||
|
@ -414,7 +422,9 @@ splitlists(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
c->flag = 0;
|
c->flag = 0;
|
||||||
|
#ifndef NO_OUTPUT
|
||||||
nLeft++;
|
nLeft++;
|
||||||
|
#endif
|
||||||
nCount[0] += c->count;
|
nCount[0] += c->count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -430,7 +440,9 @@ splitlists(
|
||||||
}
|
}
|
||||||
c->flag = 1;
|
c->flag = 1;
|
||||||
nRight++;
|
nRight++;
|
||||||
|
#ifndef NO_OUTPUT
|
||||||
nLeft--;
|
nLeft--;
|
||||||
|
#endif
|
||||||
nCount[0] -= c->count;
|
nCount[0] -= c->count;
|
||||||
nCount[1] += c->count;
|
nCount[1] += c->count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user