Commit dd40d10e81b4d96c1bfc04f0797217c9e67a161b

Ewald Hew 2017-09-28T10:42:23

Fix compiler warning. * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing code.

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
   }