freetype-devel
[Top][All Lists]
Advanced

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

a couple of compiler warnings with gcc 11 on freetype 2.10.4


From: Hin-Tak Leung
Subject: a couple of compiler warnings with gcc 11 on freetype 2.10.4
Date: Sun, 4 Jul 2021 20:24:36 +0000 (UTC)

Hi Werner,

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] );
      |                              ~~~~~~~~~~~~^~~~~~


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]
  135 |     hb_ot_tags_from_script( script,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/harfbuzz/hb-ot-deprecated.h:63:1: note: declared here
   63 | hb_ot_tags_from_script (hb_script_t  script,
      | ^~~~~~~~~~~~~~~~~~~~~~


I think the first one is probably trivial to fix (the header has to stay, so 
the function itself probably need to be modified); the latter is perhaps a bit 
more troublesome if one wants to preserve compatibility with older harfbuzz.

Regards,
Hin-Tak


reply via email to

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