Fix minor clang and clang++ warnings.
This commit is contained in:
parent
4c3916e901
commit
da9eb9c719
|
@ -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++ )
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -239,7 +239,7 @@
|
|||
*e = FT_THROW( Invalid_Stream_Read );
|
||||
png_error( png, NULL );
|
||||
|
||||
return;
|
||||
/* return; (never reached) */
|
||||
}
|
||||
|
||||
ft_memcpy( data, stream->cursor, length );
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue