* src/base/ftobjs.c (Mac_Read_POST_Resource): Fixed `-Wformat'

warnings.

    *  src/bdf/bdflib.c (ACMSG3, ACMSG7): Fixed `-Wformat' warnings.
This commit is contained in:
Priyesh Kumar 2020-08-13 23:46:23 +05:30 committed by Priyeshkkumar
parent ea09f0b7dc
commit d86528a78e
3 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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 )

View File

@ -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"