Fix compiler warning. * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/ChangeLog b/ChangeLog
index c98c490..03adef7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-09-28 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Fix compiler warning.
+
+ * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing
+ code.
+
2017-09-27 Werner Lemberg <wl@gnu.org>
* 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 cf40bc0..c8ad4e0 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
}