freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Warnings with -Wcast-qual, -Wcast-align and -Wunused-para


From: Alexander Hedges
Subject: Re: [ft-devel] Warnings with -Wcast-qual, -Wcast-align and -Wunused-parameter enabled
Date: Mon, 27 Mar 2017 19:32:56 +0200
User-agent: Mutt/1.7.1 (2016-10-04)

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

Attachment: warnings.txt
Description: Text document


reply via email to

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