ref: c6a14086d27fba8778fbce21efc6b6e069a6c701
parent: 406d25f3793af4cc08fee6884c740295383ee44b
author: Werner Lemberg <[email protected]>
date: Mon Feb 12 17:08:15 EST 2007
* src/truetype/ttinterp.c (Project_x, Project_y): Remove compiler warnings. * src/pcf/pcfread.c (pcf_interpret_style), src/bdf/bdfdrivr.c (bdf_interpret_style): Ditto.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-02-12 Werner Lemberg <[email protected]>
+
+ * src/truetype/ttinterp.c (Project_x, Project_y): Remove compiler
+ warnings.
+
+ * src/pcf/pcfread.c (pcf_interpret_style), src/bdf/bdfdrivr.c
+ (bdf_interpret_style): Ditto.
+
2007-02-12 David Turner <[email protected]>
Simplify projection and dual-projection code interface.
--- a/src/bdf/bdfdrivr.c
+++ b/src/bdf/bdfdrivr.c
@@ -248,7 +248,7 @@
if ( len == 0 )
{
- strings[0] = "Regular";
+ strings[0] = (char *)"Regular";
lengths[0] = ft_strlen( strings[0] );
len = lengths[0] + 1;
}
@@ -265,8 +265,9 @@
for ( nn = 0; nn < 4; nn++ )
{
char* src = strings[nn];
- int len = lengths[nn];
+
+ len = lengths[nn];
if ( src == NULL )
continue;
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -1039,7 +1039,7 @@
if ( len == 0 )
{
- strings[0] = "Regular";
+ strings[0] = (char *)"Regular";
lengths[0] = ft_strlen( strings[0] );
len = lengths[0] + 1;
}
@@ -1056,8 +1056,9 @@
for ( nn = 0; nn < 4; nn++ )
{
char* src = strings[nn];
- int len = lengths[nn];
+
+ len = lengths[nn];
if ( src == NULL )
continue;
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -1858,9 +1858,9 @@
{
FT_F26Dot6 val;
-
FT_UNUSED_EXEC;
+
if ( distance >= 0 )
{
val = distance + compensation + 63;
@@ -2217,6 +2217,7 @@
FT_Pos dy )
{
FT_UNUSED_EXEC;
+ FT_UNUSED( dy );
return dx;
}
@@ -2243,6 +2244,7 @@
FT_Pos dy )
{
FT_UNUSED_EXEC;
+ FT_UNUSED( dx );
return dy;
}