mirror of https://github.com/freetype/freetype
Fix several clang static analyzer dead store warnings.
* src/autofit/afhints.c (af_glyph_hints_reload, af_glyph_hints_align_weak_points): Remove unnecessary assignments. * src/bdf/bdflib.c (bdf_font_load): Ditto. * src/pshinter/pshalgo.c (psh_glyph_compute_extrema, psh_glyph_interpolate_other_points): Ditto. * src/type1/t1load.c (T1_Set_MM_Blend): Ditto.
This commit is contained in:
parent
93ebcbd0ac
commit
7ac76b50da
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
2014-03-04 Sean McBride <sean@rogue-research.com>
|
||||
|
||||
Fix several clang static analyzer dead store warnings.
|
||||
|
||||
* src/autofit/afhints.c (af_glyph_hints_reload,
|
||||
af_glyph_hints_align_weak_points): Remove unnecessary assignments.
|
||||
|
||||
* src/bdf/bdflib.c (bdf_font_load): Ditto.
|
||||
|
||||
* src/pshinter/pshalgo.c (psh_glyph_compute_extrema,
|
||||
psh_glyph_interpolate_other_points): Ditto.
|
||||
|
||||
* src/type1/t1load.c (T1_Set_MM_Blend): Ditto.
|
||||
|
||||
2014-03-03 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Rewrite library option handling in `configure'.
|
||||
|
|
|
@ -821,7 +821,6 @@
|
|||
|
||||
in_x = out_x;
|
||||
in_y = out_y;
|
||||
prev = point;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1257,7 +1256,6 @@
|
|||
}
|
||||
|
||||
first_touched = point;
|
||||
last_touched = point;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
|
|
@ -2399,7 +2399,6 @@
|
|||
{
|
||||
/* If the font is not proportional, set the font's monowidth */
|
||||
/* field to the width of the font bounding box. */
|
||||
memory = p->font->memory;
|
||||
|
||||
if ( p->font->spacing != BDF_PROPORTIONAL )
|
||||
p->font->monowidth = p->font->bbx.width;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* PostScript hinting algorithm (body). */
|
||||
/* */
|
||||
/* Copyright 2001-2010, 2012, 2013 by */
|
||||
/* Copyright 2001-2010, 2012-2014 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used */
|
||||
|
@ -1406,7 +1406,6 @@
|
|||
|
||||
point = first;
|
||||
before = point;
|
||||
after = point;
|
||||
|
||||
do
|
||||
{
|
||||
|
@ -2079,8 +2078,6 @@
|
|||
start = first;
|
||||
do
|
||||
{
|
||||
point = first;
|
||||
|
||||
/* skip consecutive fitted points */
|
||||
for (;;)
|
||||
{
|
||||
|
|
|
@ -377,8 +377,6 @@
|
|||
if ( blend && blend->num_axis == num_coords )
|
||||
{
|
||||
/* recompute the weight vector from the blend coordinates */
|
||||
error = FT_Err_Ok;
|
||||
|
||||
for ( n = 0; n < blend->num_designs; n++ )
|
||||
{
|
||||
FT_Fixed result = 0x10000L; /* 1.0 fixed */
|
||||
|
|
Loading…
Reference in New Issue