svn commit: r222084 - head/contrib/gperf/src

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed May 18 21:17:18 UTC 2011


On Wed, May 18, 2011 at 09:06:20PM +0000, Ben Laurie wrote:
> Author: benl
> Date: Wed May 18 21:06:20 2011
> New Revision: 222084
> URL: http://svn.freebsd.org/changeset/base/222084
> 
> Log:
>   Fix clang warnings.
>   
>   Approved by:	philip (mentor)
[...]
> -            fprintf (stderr, " by changing asso_value['%c'] (char #%d) to %d\n",
> +            fprintf (stderr, " by changing asso_value['%c'] (char #%zd) to %d\n",
>                       *p, p - union_set + 1, asso_values[(unsigned char)(*p)]);

Hmm, both 'p' and 'union_set' are 'char *' and %zd is for ssize_t. It is
a bit strange that it fixes the warning.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20110518/f75346b0/attachment.pgp


More information about the svn-src-all mailing list