From b24e8d33561e4f5b8976ce1f01aab172dc1c7eb9 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 6 Mar 2014 14:54:22 +0100 Subject: [PATCH] Remove more clang analyzer warnings. * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c (TT_Load_Glyph): Remove dead stores. --- ChangeLog | 7 +++++++ src/bdf/bdflib.c | 1 - src/truetype/ttgload.c | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f53824768..366f5326e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-03-06 Sean McBride + + Remove more clang analyzer warnings. + + * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c + (TT_Load_Glyph): Remove dead stores. + 2014-03-05 Werner Lemberg * builds/unix/configure.raw: Simplify. diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c index 83e4392f5..2eda11cd9 100644 --- a/src/bdf/bdflib.c +++ b/src/bdf/bdflib.c @@ -691,7 +691,6 @@ lineno = 1; buf[0] = 0; start = 0; - end = 0; avail = 0; cursor = 0; refill = 1; diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index b10e39026..5f676a2ef 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -2346,8 +2346,6 @@ TT_LoaderRec loader; - error = FT_Err_Ok; - FT_TRACE1(( "TT_Load_Glyph: glyph index %d\n", glyph_index )); #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS