From dd40d10e81b4d96c1bfc04f0797217c9e67a161b Mon Sep 17 00:00:00 2001 From: Ewald Hew Date: Thu, 28 Sep 2017 10:42:23 +0800 Subject: [PATCH] Fix compiler warning. * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing code. --- ChangeLog | 7 +++++++ src/psaux/pshints.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index c98c4900e..03adef74d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-09-28 Ewald Hew + + [psaux] Fix compiler warning. + + * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing + code. + 2017-09-27 Werner Lemberg * src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning. diff --git a/src/psaux/pshints.c b/src/psaux/pshints.c index cf40bc01a..c8ad4e03e 100644 --- a/src/psaux/pshints.c +++ b/src/psaux/pshints.c @@ -302,6 +302,7 @@ static void cf2_hintmap_dump( CF2_HintMap hintmap ) { +#ifdef FT_DEBUG_LEVEL_TRACE CF2_UInt i; @@ -321,6 +322,9 @@ ( cf2_hint_isLocked( hint ) ? "L" : ""), ( cf2_hint_isSynthetic( hint ) ? "S" : "" ) )); } +#else + FT_UNUSED( hintmap ); +#endif }