freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a couple of compiler warnings with gcc 11 on freetype 2.10.4


From: Werner LEMBERG
Subject: Re: a couple of compiler warnings with gcc 11 on freetype 2.10.4
Date: Sun, 04 Jul 2021 20:31:35 +0000 (UTC)

> There are two new warnings from building 2.10.4 on current fedora.
> One is likely from the newer gcc 11:
> 
> 
> src/base/ftlcdfil.c:360:42: warning:
>   argument 2 of type ‘FT_Vector *’ {aka ‘struct FT_Vector_ *’}
>   declared as a pointer [-Warray-parameter=]
>   360 |                              FT_Vector*  sub )
>       |                              ~~~~~~~~~~~~^~~
> include/freetype/ftlcdfil.h:314:42: note:
>   previously declared as an array ‘FT_Vector[3]’
>   {aka ‘struct FT_Vector_[3]’}
>   314 |                              FT_Vector   sub[3] );
>       |                              ~~~~~~~~~~~~^~~~~~

Thanks!  I leave it to Alexei to fix this :-)

> The other seems to be due to newer harfbuzz:
> 
> src/autofit/afshaper.c:135:5: warning:
>   ‘hb_ot_tags_from_script’ is deprecated:
>   Use 'hb_ot_tags_from_script_and_language' instead
>   [-Wdeprecated-declarations]
>   ...

This has already been fixed in the git repository.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]