Remove unused variable.
Found by Graham. * src/autofit/afhints.c (af_glyph_hints_reload): Remove unused variable `first' in first block.
This commit is contained in:
parent
e30de299f2
commit
c217bf19f0
|
@ -1,3 +1,11 @@
|
||||||
|
2010-05-26 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
Remove unused variable.
|
||||||
|
Found by Graham.
|
||||||
|
|
||||||
|
* src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
|
||||||
|
variable `first' in first block.
|
||||||
|
|
||||||
2010-05-22 Werner Lemberg <wl@gnu.org>
|
2010-05-22 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Fix various memory problems found by linuxtesting.org.
|
Fix various memory problems found by linuxtesting.org.
|
||||||
|
|
|
@ -524,13 +524,11 @@
|
||||||
{
|
{
|
||||||
FT_Vector* vec = outline->points;
|
FT_Vector* vec = outline->points;
|
||||||
char* tag = outline->tags;
|
char* tag = outline->tags;
|
||||||
AF_Point first = points;
|
|
||||||
AF_Point end = points + outline->contours[0];
|
AF_Point end = points + outline->contours[0];
|
||||||
AF_Point prev = end;
|
AF_Point prev = end;
|
||||||
FT_Int contour_index = 0;
|
FT_Int contour_index = 0;
|
||||||
|
|
||||||
|
|
||||||
FT_UNUSED( first );
|
|
||||||
for ( point = points; point < point_limit; point++, vec++, tag++ )
|
for ( point = points; point < point_limit; point++, vec++, tag++ )
|
||||||
{
|
{
|
||||||
point->fx = (FT_Short)vec->x;
|
point->fx = (FT_Short)vec->x;
|
||||||
|
@ -558,9 +556,8 @@
|
||||||
{
|
{
|
||||||
if ( ++contour_index < outline->n_contours )
|
if ( ++contour_index < outline->n_contours )
|
||||||
{
|
{
|
||||||
first = point + 1;
|
end = points + outline->contours[contour_index];
|
||||||
end = points + outline->contours[contour_index];
|
prev = end;
|
||||||
prev = end;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue