Fix minor clang and clang++ warnings.

This commit is contained in:
Werner Lemberg 2023-02-07 07:01:36 +01:00
parent 4c3916e901
commit da9eb9c719
4 changed files with 8 additions and 8 deletions

View File

@ -1116,13 +1116,13 @@
goto Exit;
}
spread = FT_INT_16D16( worker->params.spread );
spread = (FT_16D16)FT_INT_16D16( worker->params.spread );
#if USE_SQUARED_DISTANCES
sp_sq = FT_INT_16D16( worker->params.spread *
worker->params.spread );
sp_sq = (FT_16D16)FT_INT_16D16( worker->params.spread *
worker->params.spread );
#else
sp_sq = FT_INT_16D16( worker->params.spread );
sp_sq = (FT_16D16)FT_INT_16D16( worker->params.spread );
#endif
for ( j = 0; j < r; j++ )

View File

@ -3258,7 +3258,7 @@
/* and also determine the signs properly. */
SDF_Signed_Distance* dists = NULL;
const FT_16D16 fixed_spread = FT_INT_16D16( spread );
const FT_16D16 fixed_spread = (FT_16D16)FT_INT_16D16( spread );
if ( !shape || !bitmap )

View File

@ -239,7 +239,7 @@
*e = FT_THROW( Invalid_Stream_Read );
png_error( png, NULL );
return;
/* return; (never reached) */
}
ft_memcpy( data, stream->cursor, length );

View File

@ -1005,7 +1005,7 @@
FT_ItemVarDelta* deltaSet;
FT_UInt master, j;
FT_Fixed* scalars;
FT_Fixed* scalars = NULL;
FT_ItemVarDelta returnValue;
@ -1983,7 +1983,7 @@
FT_Var_Axis* a;
GX_AVarSegment av;
FT_Fixed* new_normalized;
FT_Fixed* new_normalized = NULL;
FT_Fixed* old_normalized;