From 493cc037c760e5a81e31dc70711ba05ee5a6b8fa Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 6 Mar 2015 05:38:31 +0100 Subject: [PATCH] * src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning. Found by Alexei. --- ChangeLog | 6 ++++++ src/sfnt/ttload.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index f620bed82..d24261648 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-03-06 Werner Lemberg + + * src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning. + + Found by Alexei. + 2015-03-05 Alexei Podtelezhnikov * src/base/ftstroke.c: Simplify. diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c index 5fed0b2c3..ad2975de0 100644 --- a/src/sfnt/ttload.c +++ b/src/sfnt/ttload.c @@ -417,7 +417,9 @@ if ( entry->Tag == TTAG_hmtx || entry->Tag == TTAG_vmtx ) { +#ifdef FT_DEBUG_LEVEL_TRACE FT_ULong old_length = entry->Length; +#endif /* make metrics table length a multiple of 4 */