diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-08 09:36:02 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-08 09:36:02 -0700 |
commit | 3da7640b35c9660944168217c145a1011547712b (patch) | |
tree | 9f4081de2943392c4339ff99826a0e37f1659a11 | |
parent | b8c26cb3d41b18dfcc14a1ae256f6575c7df7593 (diff) |
Dead code removal
have_face is initialized to 0 at the beginning of the loop, so no need to set
it to 0 just before it goes out of scope at the end of the loop.
mkfontscale.c:945:13: warning: Value stored to 'have_face' is never read
have_face = 0;
^ ~
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | mkfontscale.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mkfontscale.c b/mkfontscale.c index ba2f841..31553cb 100644 --- a/mkfontscale.c +++ b/mkfontscale.c @@ -940,10 +940,8 @@ doDirectory(char *dirname_given, int numEncodings, ListPtr encodingsToDo) } } done: - if(have_face) { + if(have_face) FT_Done_Face(face); - have_face = 0; - } deepDestroyList(xlfd); xlfd = NULL; free(filename); |