[raster, smooth] Fix some clang sanitizer runtime issues.

* src/raster/ftraster.c (ft_black_reset, ft_black_set_mode,
ft_black_render): Harmonize signatures with `ftimage.h'.

* src/smooth/ftgrays.c (gray_raster_render, gray_raster_reset):
Ditto.
This commit is contained in:
Werner Lemberg 2016-03-23 06:58:20 +01:00
parent b663307320
commit e9181aba2c
3 changed files with 22 additions and 12 deletions

View File

@ -1,3 +1,13 @@
2016-03-23 Werner Lemberg <wl@gnu.org>
[raster, smooth] Fix some clang sanitizer runtime issues.
* src/raster/ftraster.c (ft_black_reset, ft_black_set_mode,
ft_black_render): Harmonize signatures with `ftimage.h'.
* src/smooth/ftgrays.c (gray_raster_render, gray_raster_reset):
Ditto.
2016-03-22 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Minor.

View File

@ -3106,9 +3106,9 @@
static void
ft_black_reset( black_PRaster raster,
char* pool_base,
Long pool_size )
ft_black_reset( FT_Raster raster,
PByte pool_base,
ULong pool_size )
{
FT_UNUSED( raster );
FT_UNUSED( pool_base );
@ -3117,20 +3117,20 @@
static int
ft_black_set_mode( black_PRaster raster,
ULong mode,
const char* palette )
ft_black_set_mode( FT_Raster raster,
ULong mode,
void* args )
{
FT_UNUSED( raster );
FT_UNUSED( mode );
FT_UNUSED( palette );
FT_UNUSED( args );
return 0;
}
static int
ft_black_render( black_PRaster raster,
ft_black_render( FT_Raster raster,
const FT_Raster_Params* params )
{
const FT_Outline* outline = (const FT_Outline*)params->source;

View File

@ -2025,7 +2025,7 @@ typedef ptrdiff_t FT_PtrDist;
static int
gray_raster_render( gray_PRaster raster,
gray_raster_render( FT_Raster raster,
const FT_Raster_Params* params )
{
const FT_Outline* outline = (const FT_Outline*)params->source;
@ -2180,9 +2180,9 @@ typedef ptrdiff_t FT_PtrDist;
static void
gray_raster_reset( FT_Raster raster,
char* pool_base,
long pool_size )
gray_raster_reset( FT_Raster raster,
unsigned char* pool_base,
unsigned long pool_size )
{
FT_UNUSED( raster );
FT_UNUSED( pool_base );