shithub: freetype+ttf2subf

Download patch

ref: c6e4180c057f49b0b9d8267f870aa79c6388c3b9
parent: 012552f143aa0069b9575c406b599775e92868b8
author: Werner Lemberg <[email protected]>
date: Wed Nov 4 07:18:48 EST 2009

Remove compiler warning.
Reported by Sean McBride <[email protected]>.

* src/tools/apinames.c (read_header_file)<STATE_TYPE>: Use a cast to
`int', as specified in the printf(3) man page.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-11-04  Werner Lemberg  <[email protected]>
 
+	Remove compiler warning.
+	Reported by Sean McBride <[email protected]>.
+
+	* src/tools/apinames.c (read_header_file)<STATE_TYPE>: Use a cast to
+	`int', as specified in the printf(3) man page.
+
+2009-11-04  Werner Lemberg  <[email protected]>
+
 	Fix Savannah bug #27921.
 
 	* src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
@@ -6510,8 +6518,8 @@
 
 2006-12-08  Vladimir Volovich  <[email protected]>
 
-	* src/tools/apinames (State): Remove final comma in structure -- xlc
-	v5 under AIX 4.3 doesn't like this.
+	* src/tools/apinames.c (State): Remove final comma in structure --
+	xlc v5 under AIX 4.3 doesn't like this.
 
 2006-12-07  David Turner  <[email protected]>
 
--- a/src/tools/apinames.c
+++ b/src/tools/apinames.c
@@ -10,7 +10,7 @@
  * accepted if you are using GCC for compilation (and probably by
  * other compilers too).
  *
- * Author: David Turner, 2005, 2006, 2008
+ * Author: David Turner, 2005, 2006, 2008, 2009
  *
  * This code is explicitly placed into the public domain.
  *
@@ -265,7 +265,7 @@
           if ( p > name )
           {
             if ( verbose )
-              fprintf( stderr, ">>> %.*s\n", p-name, name );
+              fprintf( stderr, ">>> %.*s\n", (int)(p - name), name );
 
             names_add( name, p );
           }