diff --git a/[priyesh]ChangeLog b/[priyesh]ChangeLog index d77636828..b6d4b610e 100644 --- a/[priyesh]ChangeLog +++ b/[priyesh]ChangeLog @@ -1,5 +1,10 @@ 2020-08-13 Priyesh Kumar + + * 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 b7e1a897f..6a06b993d 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 a4ddb9a1d..4de509f92 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"