Hi, Attached patch makes second argument of ps_mask_table_set_bits const and adjusts rest of the source accordingly. This fixes the following warning:
src/pshinter/pshrec.c: In function 'ps_dimension_set_mask_bits': src/pshinter/pshrec.c:631: warning: passing argument 2 of 'ps_mask_table_set_bits' discards qualifiers from pointer target type Regards, ismail -- Perfect is the enemy of good
Index: src/pshinter/pshrec.c =================================================================== RCS file: /cvsroot/freetype/freetype2/src/pshinter/pshrec.c,v retrieving revision 1.24 diff -u -r1.24 pshrec.c --- src/pshinter/pshrec.c 26 Jan 2007 22:18:56 -0000 1.24 +++ src/pshinter/pshrec.c 19 May 2007 15:50:03 -0000 @@ -309,7 +309,7 @@ /* set a new mask to a given bit range */ static FT_Error ps_mask_table_set_bits( PS_Mask_Table table, - FT_Byte* source, + const FT_Byte* source, FT_UInt bit_pos, FT_UInt bit_count, FT_Memory memory ) @@ -330,7 +330,7 @@ /* now, copy bits */ { - FT_Byte* read = source + ( bit_pos >> 3 ); + FT_Byte* read = (FT_Byte*)source + ( bit_pos >> 3 ); FT_Int rmask = 0x80 >> ( bit_pos & 7 ); FT_Byte* write = mask->bytes; FT_Int wmask = 0x80; @@ -628,7 +628,7 @@ goto Exit; /* set bits in new mask */ - error = ps_mask_table_set_bits( &dim->masks, (FT_Byte*)source, + error = ps_mask_table_set_bits( &dim->masks, source, source_pos, source_bits, memory ); Exit:
_______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel