aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉloi Rivard <azmeuk@gmail.com>2013-04-26 17:48:17 +0200
committerÉloi Rivard <azmeuk@gmail.com>2013-04-26 18:38:59 +0200
commitc6c8356c81a9b1ad329263a087e0e78870dbfa82 (patch)
tree8505dd93442f8e780b326d83477838ead65c8a61
parentd239ec265a345fdfdc2f12d9ffa149bfd15ca4e9 (diff)
* Removed some freetype ASM_JS warnings.
-rw-r--r--.gitignore2
-rw-r--r--tests/freetype/src/autofit/afdummy.c4
-rw-r--r--tests/freetype/src/autofit/aftypes.h2
-rw-r--r--tests/freetype/src/cff/cffcmap.c8
-rw-r--r--tests/freetype/src/cid/cidload.c23
-rw-r--r--tests/freetype/src/pfr/pfrcmap.c4
-rw-r--r--tests/freetype/src/psaux/t1cmap.c14
-rw-r--r--tests/freetype/src/raster/ftraster.c3
-rw-r--r--tests/freetype/src/winfonts/winfnt.c9
9 files changed, 41 insertions, 28 deletions
diff --git a/.gitignore b/.gitignore
index 34e0389c..92043241 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,8 @@ src/relooper/*.o
src/relooper/*.out
tests/fake/
+tests/freetype/objs/*.o
+tests/freetype/objs/*.lo
third_party/lzma.js/lzip/*.o
third_party/lzma.js/lzma-native
diff --git a/tests/freetype/src/autofit/afdummy.c b/tests/freetype/src/autofit/afdummy.c
index 42b2fcb2..db8e8edb 100644
--- a/tests/freetype/src/autofit/afdummy.c
+++ b/tests/freetype/src/autofit/afdummy.c
@@ -33,10 +33,12 @@
static FT_Error
af_dummy_hints_apply( AF_GlyphHints hints,
- FT_Outline* outline )
+ FT_Outline* outline,
+ AF_ScriptMetrics metrics )
{
FT_UNUSED( hints );
FT_UNUSED( outline );
+ FT_UNUSED( metrics );
return 0;
}
diff --git a/tests/freetype/src/autofit/aftypes.h b/tests/freetype/src/autofit/aftypes.h
index 5574f0c3..255ef8f8 100644
--- a/tests/freetype/src/autofit/aftypes.h
+++ b/tests/freetype/src/autofit/aftypes.h
@@ -309,7 +309,7 @@ extern void* _af_debug_hints;
(*AF_Script_InitHintsFunc)( AF_GlyphHints hints,
AF_ScriptMetrics metrics );
- typedef void
+ typedef FT_Error
(*AF_Script_ApplyHintsFunc)( AF_GlyphHints hints,
FT_Outline* outline,
AF_ScriptMetrics metrics );
diff --git a/tests/freetype/src/cff/cffcmap.c b/tests/freetype/src/cff/cffcmap.c
index 12983711..570beb7a 100644
--- a/tests/freetype/src/cff/cffcmap.c
+++ b/tests/freetype/src/cff/cffcmap.c
@@ -31,12 +31,12 @@
/*************************************************************************/
FT_CALLBACK_DEF( FT_Error )
- cff_cmap_encoding_init( CFF_CMapStd cmap )
+ cff_cmap_encoding_init( CFF_CMapStd cmap, FT_Pointer init_data )
{
TT_Face face = (TT_Face)FT_CMAP_FACE( cmap );
CFF_Font cff = (CFF_Font)face->extra.data;
CFF_Encoding encoding = &cff->encoding;
-
+ FT_UNUSED(init_data);
cmap->gids = encoding->codes;
@@ -133,14 +133,14 @@
FT_CALLBACK_DEF( FT_Error )
- cff_cmap_unicode_init( PS_Unicodes unicodes )
+ cff_cmap_unicode_init( PS_Unicodes unicodes, FT_Pointer init_data )
{
TT_Face face = (TT_Face)FT_CMAP_FACE( unicodes );
FT_Memory memory = FT_FACE_MEMORY( face );
CFF_Font cff = (CFF_Font)face->extra.data;
CFF_Charset charset = &cff->charset;
FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)cff->psnames;
-
+ FT_UNUSED(init_data);
/* can't build Unicode map for CID-keyed font */
/* because we don't know glyph names. */
diff --git a/tests/freetype/src/cid/cidload.c b/tests/freetype/src/cid/cidload.c
index 3bb35944..3ccef9cd 100644
--- a/tests/freetype/src/cid/cidload.c
+++ b/tests/freetype/src/cid/cidload.c
@@ -146,7 +146,8 @@
}
- FT_CALLBACK_DEF( FT_Error )
+/* FT_CALLBACK_DEF( FT_Error )*/
+ FT_CALLBACK_DEF( void )
parse_font_matrix( CID_Face face,
CID_Parser* parser )
{
@@ -195,14 +196,16 @@
offset->y = temp[5] >> 16;
}
- return CID_Err_Ok; /* this is a callback function; */
+ return;
+ /*return CID_Err_Ok;*/ /* this is a callback function; */
/* we must return an error code */
}
- FT_CALLBACK_DEF( FT_Error )
+/* FT_CALLBACK_DEF( FT_Error ) */
+ FT_CALLBACK_DEF( void )
parse_fd_array( CID_Face face,
- CID_Parser* parser )
+ CID_Parser* parser)
{
CID_FaceInfo cid = &face->cid;
FT_Memory memory = face->root.memory;
@@ -232,9 +235,10 @@
dict->private_dict.lenIV = 4;
}
}
-
+
Exit:
- return error;
+/* return error; */
+ return;
}
@@ -242,9 +246,10 @@
/* and CID_FaceDictRec (both are public header files and can't */
/* changed); we simply copy the value */
- FT_CALLBACK_DEF( FT_Error )
+/* FT_CALLBACK_DEF( FT_Error ) */
+ FT_CALLBACK_DEF( void )
parse_expansion_factor( CID_Face face,
- CID_Parser* parser )
+ CID_Parser* parser)
{
CID_FaceDict dict;
@@ -257,7 +262,7 @@
dict->private_dict.expansion_factor = dict->expansion_factor;
}
- return CID_Err_Ok;
+ /* return CID_Err_Ok; */
}
diff --git a/tests/freetype/src/pfr/pfrcmap.c b/tests/freetype/src/pfr/pfrcmap.c
index 9c8f9ed8..0ce7eba2 100644
--- a/tests/freetype/src/pfr/pfrcmap.c
+++ b/tests/freetype/src/pfr/pfrcmap.c
@@ -23,11 +23,11 @@
FT_CALLBACK_DEF( FT_Error )
- pfr_cmap_init( PFR_CMap cmap )
+ pfr_cmap_init( PFR_CMap cmap, FT_Pointer init_data )
{
FT_Error error = PFR_Err_Ok;
PFR_Face face = (PFR_Face)FT_CMAP_FACE( cmap );
-
+ FT_UNUSED(init_data);
cmap->num_chars = face->phy_font.num_chars;
cmap->chars = face->phy_font.chars;
diff --git a/tests/freetype/src/psaux/t1cmap.c b/tests/freetype/src/psaux/t1cmap.c
index f933e4da..dc0bb41c 100644
--- a/tests/freetype/src/psaux/t1cmap.c
+++ b/tests/freetype/src/psaux/t1cmap.c
@@ -120,8 +120,9 @@
FT_CALLBACK_DEF( FT_Error )
- t1_cmap_standard_init( T1_CMapStd cmap )
+ t1_cmap_standard_init( T1_CMapStd cmap, FT_Pointer init_data )
{
+ FT_UNUSED(init_data);
t1_cmap_std_init( cmap, 0 );
return 0;
}
@@ -142,8 +143,9 @@
FT_CALLBACK_DEF( FT_Error )
- t1_cmap_expert_init( T1_CMapStd cmap )
+ t1_cmap_expert_init( T1_CMapStd cmap, FT_Pointer init_data )
{
+ FT_UNUSED(init_data);
t1_cmap_std_init( cmap, 1 );
return 0;
}
@@ -172,11 +174,11 @@
FT_CALLBACK_DEF( FT_Error )
- t1_cmap_custom_init( T1_CMapCustom cmap )
+ t1_cmap_custom_init( T1_CMapCustom cmap, FT_Pointer init_data )
{
T1_Face face = (T1_Face)FT_CMAP_FACE( cmap );
T1_Encoding encoding = &face->type1.encoding;
-
+ FT_UNUSED(init_data);
cmap->first = encoding->code_first;
cmap->count = (FT_UInt)( encoding->code_last - cmap->first );
@@ -272,12 +274,12 @@
FT_CALLBACK_DEF( FT_Error )
- t1_cmap_unicode_init( PS_Unicodes unicodes )
+ t1_cmap_unicode_init( PS_Unicodes unicodes, FT_Pointer init_data )
{
T1_Face face = (T1_Face)FT_CMAP_FACE( unicodes );
FT_Memory memory = FT_FACE_MEMORY( face );
FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->psnames;
-
+ FT_UNUSED(init_data);
return psnames->unicodes_init( memory,
unicodes,
diff --git a/tests/freetype/src/raster/ftraster.c b/tests/freetype/src/raster/ftraster.c
index 9638dfb0..fb009d9d 100644
--- a/tests/freetype/src/raster/ftraster.c
+++ b/tests/freetype/src/raster/ftraster.c
@@ -3462,7 +3462,7 @@
}
- static void
+ static int
ft_black_set_mode( PRaster raster,
unsigned long mode,
const char* palette )
@@ -3486,6 +3486,7 @@
FT_UNUSED( palette );
#endif
+ return 0;
}
diff --git a/tests/freetype/src/winfonts/winfnt.c b/tests/freetype/src/winfonts/winfnt.c
index ee17d166..d0925e2d 100644
--- a/tests/freetype/src/winfonts/winfnt.c
+++ b/tests/freetype/src/winfonts/winfnt.c
@@ -591,11 +591,11 @@
static FT_Error
- fnt_cmap_init( FNT_CMap cmap )
+ fnt_cmap_init( FNT_CMap cmap, FT_Pointer init_data )
{
FNT_Face face = (FNT_Face)FT_CMAP_FACE( cmap );
FNT_Font font = face->font;
-
+ FT_UNUSED(init_data);
cmap->first = (FT_UInt32) font->header.first_char;
cmap->count = (FT_UInt32)( font->header.last_char - cmap->first + 1 );
@@ -882,13 +882,14 @@
static FT_Error
- FNT_Size_Select( FT_Size size )
+ FNT_Size_Select( FT_Size size, FT_ULong size_index )
{
FNT_Face face = (FNT_Face)size->face;
FT_WinFNT_Header header = &face->font->header;
FT_Select_Metrics( size->face, 0 );
+ FT_UNUSED(size_index);
size->metrics.ascender = header->ascent * 64;
size->metrics.descender = -( header->pixel_height -
@@ -933,7 +934,7 @@
if ( error )
return error;
else
- return FNT_Size_Select( size );
+ return FNT_Size_Select( size, 0 );
}