freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] priyesh_LogLibrary 211ce5a: * src/base/ftobjs.c (Mac_Read_PO


From: Priyesh Kumar
Subject: [freetype2] priyesh_LogLibrary 211ce5a: * src/base/ftobjs.c (Mac_Read_POST_Resource): Fixed `-Wformat'
Date: Thu, 13 Aug 2020 14:28:23 -0400 (EDT)

branch: priyesh_LogLibrary
commit 211ce5adece6228ed6ee12aa9c8ad258cc0f14d3
Author: Rajendra Prasad <raprasad@raprasad-catalina.local>
Commit: Rajendra Prasad <raprasad@raprasad-catalina.local>

        * src/base/ftobjs.c (Mac_Read_POST_Resource): Fixed `-Wformat'
        warnings.
    
        *  src/bdf/bdflib.c (ACMSG3, ACMSG7): Fixed `-Wformat' warnings.
---
 [priyesh]ChangeLog | 5 +++++
 src/base/ftobjs.c  | 6 +++---
 src/bdf/bdflib.c   | 4 ++--
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/[priyesh]ChangeLog b/[priyesh]ChangeLog
index d776368..b6d4b61 100644
--- a/[priyesh]ChangeLog
+++ b/[priyesh]ChangeLog
@@ -1,5 +1,10 @@
 2020-08-13  Priyesh Kumar  <priyeshkkumar@gmail.com>
+    
+    * src/base/ftobjs.c (Mac_Read_POST_Resource): Fixed `-Wformat' 
+    warnings.
 
+    *  src/bdf/bdflib.c (ACMSG3, ACMSG7): Fixed `-Wformat' warnings. 
+       
     [priyesh]ChangeLog: Fix Date.
 
     * builds/windows/dlg/dlg.vcxproj (PreprocessorDefinitions): Added 
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index b7e1a89..6a06b99 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1937,7 +1937,7 @@
       {
         FT_TRACE3(( "    Write POST fragment #%d header (4-byte) to buffer"
                     " %p + 0x%08lx\n",
-                    i, pfb_data, pfb_lenpos ));
+                    i, ( void* )pfb_data, pfb_lenpos ));
 
         if ( pfb_lenpos + 3 > pfb_len + 2 )
           goto Exit2;
@@ -1952,7 +1952,7 @@
 
         FT_TRACE3(( "    Write POST fragment #%d header (6-byte) to buffer"
                     " %p + 0x%08lx\n",
-                    i, pfb_data, pfb_pos ));
+                    i, ( void* )pfb_data, pfb_pos ));
 
         if ( pfb_pos + 6 > pfb_len + 2 )
           goto Exit2;
@@ -1975,7 +1975,7 @@
 
       FT_TRACE3(( "    Load POST fragment #%d (%ld byte) to buffer"
                   " %p + 0x%08lx\n",
-                  i, rlen, pfb_data, pfb_pos ));
+                  i, rlen, ( void* )pfb_data, pfb_pos ));
 
       error = FT_Stream_Read( stream, (FT_Byte *)pfb_data + pfb_pos, rlen );
       if ( error )
diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c
index a4ddb9a..4de509f 100644
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -185,12 +185,12 @@
                  "Added `FONT_ASCENT %hd'.\n"
 #define ACMSG2   "FONT_DESCENT property missing.  " \
                  "Added `FONT_DESCENT %hd'.\n"
-#define ACMSG3   "Font width != actual width.  Old: %hd New: %hd.\n"
+#define ACMSG3   "Font width != actual width.  Old: %d New: %d.\n"
 #define ACMSG4   "Font left bearing != actual left bearing.  " \
                  "Old: %hd New: %hd.\n"
 #define ACMSG5   "Font ascent != actual ascent.  Old: %hd New: %hd.\n"
 #define ACMSG6   "Font descent != actual descent.  Old: %hd New: %hd.\n"
-#define ACMSG7   "Font height != actual height. Old: %hd New: %hd.\n"
+#define ACMSG7   "Font height != actual height. Old: %d New: %d.\n"
 #define ACMSG8   "Glyph scalable width (SWIDTH) adjustments made.\n"
 #define ACMSG9   "SWIDTH field missing at line %ld.  Set automatically.\n"
 #define ACMSG10  "DWIDTH field missing at line %ld.  Set to glyph width.\n"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]