Date: Wed, 18 May 2011 23:16:51 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Ben Laurie <benl@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r222084 - head/contrib/gperf/src Message-ID: <20110518211651.GE2273@garage.freebsd.pl> In-Reply-To: <201105182106.p4IL6KkE008657@svn.freebsd.org> References: <201105182106.p4IL6KkE008657@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--7LkOrbQMr4cezO2T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > Log: > Fix clang warnings. > =20 > Approved by: philip (mentor) [...] > - fprintf (stderr, " by changing asso_value['%c'] (char #%d) t= o %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. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --7LkOrbQMr4cezO2T Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk3UN0IACgkQForvXbEpPzTZTACaA2O52ZfJwqf6psjvOwmvA7Ec 9+4AnR4qgyeJwv/sAgSewkajlVseyZhy =A2HV -----END PGP SIGNATURE----- --7LkOrbQMr4cezO2T--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110518211651.GE2273>