[PATCH:libXfont 3/4] Fix printf warnings about incorrect argument types
alan.coopersmith at oracle.com
Mon Oct 24 18:51:03 PDT 2011
On 10/24/11 12:12, Julien Cristau wrote:
> On Sun, Oct 23, 2011 at 16:53:59 -0700, Jeremy Huddleston wrote:
>> Why not change the format string to use %ld for sizeof() instead of casting?
> That would be %zu.
Which I don't think we've started using yet in Xorg, since we've assumed more
about the C99 compatibility of our compilers than of the platform C libraries.
As best as I know, casting is the most portable way to make sure the argument
sizes match the format string for now, until we're ready to demand C99
compliance of the printf() implementation in the platform libraries.
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel