On Mon, Mar 27, 2017 at 08:00:29AM +0200, Werner LEMBERG wrote: > > >>> Also I get a few -Wunused-parameter warnings. > >> > >> Really? I don't get this. Please elaborate. > > > > the first two I get are in pcfdrivr.c > > for both parameters `const char* property_name` clang emits: > > > > error: unused parameter ???property_name???. > > > > I checked the parameters and they only seem used if > > PCF_CONFIG_OPTION_LONG_FAMILY_NAMES is defined, depending on how > > FT_TRACE0 is defined. > > Fixed, thanks.
There is one more location where this warning pops up: In file included from /usr/src/contrib/freetype2/src/sfnt/sfnt.c:32: /usr/src/contrib/freetype2/src/sfnt/ttsbit.c:1452: warning: unused parameter 'metrics_only' > > > In the mailing list there is a mail titled ???Mysterious warning > > message??? which seems to be referencing the same issue. > > Please send a log file snippet so that I can see the exact wording. > > > Werner I attached a file with all the warnings. It seems that on FreeBSD there is an include file (/usr/include/strings.h) where a function with the name "index" is defined. I'm not sure how this should be handled since I guess the header is only present on FreeBSD. Regards, Alexander
In file included from /usr/src/contrib/freetype2/src/cff/cff.c:37: /usr/src/contrib/freetype2/src/cff/cf2intrp.c: In function 'cf2_doFlex': /usr/src/contrib/freetype2/src/cff/cf2intrp.c:342: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c: In function 'cf2_interpT2CharString': /usr/src/contrib/freetype2/src/cff/cf2intrp.c:784: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:805: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:836: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1596: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1634: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1679: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1725: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here In file included from /usr/src/contrib/freetype2/src/truetype/truetype.c:25: /usr/src/contrib/freetype2/src/truetype/ttgload.c: In function 'ft_list_get_node_at': /usr/src/contrib/freetype2/src/truetype/ttgload.c:1395: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here In file included from /usr/src/contrib/freetype2/src/cff/cff.c:37: /usr/src/contrib/freetype2/src/cff/cf2intrp.c: In function 'cf2_doFlex': /usr/src/contrib/freetype2/src/cff/cf2intrp.c:342: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c: In function 'cf2_interpT2CharString': /usr/src/contrib/freetype2/src/cff/cf2intrp.c:784: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:805: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:836: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1596: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1634: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1679: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1725: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here In file included from /usr/src/contrib/freetype2/src/truetype/truetype.c:25: /usr/src/contrib/freetype2/src/truetype/ttgload.c: In function 'ft_list_get_node_at': /usr/src/contrib/freetype2/src/truetype/ttgload.c:1395: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here In file included from /usr/src/contrib/freetype2/src/cff/cff.c:37: /usr/src/contrib/freetype2/src/cff/cf2intrp.c: In function 'cf2_doFlex': /usr/src/contrib/freetype2/src/cff/cf2intrp.c:342: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c: In function 'cf2_interpT2CharString': /usr/src/contrib/freetype2/src/cff/cf2intrp.c:784: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:805: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:836: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1596: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1634: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1679: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here /usr/src/contrib/freetype2/src/cff/cf2intrp.c:1725: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here In file included from /usr/src/contrib/freetype2/src/truetype/truetype.c:25: /usr/src/contrib/freetype2/src/truetype/ttgload.c: In function 'ft_list_get_node_at': /usr/src/contrib/freetype2/src/truetype/ttgload.c:1395: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:60: warning: shadowed declaration is here
_______________________________________________ Freetype-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype-devel
