[PATCH] Suppress a warning about mismatched parameter in format string (expected long int, provided unsigned int).
samuel.thibault at ens-lyon.org
Wed Apr 25 06:02:06 PDT 2007
Thomas Dickey, le Wed 25 Apr 2007 08:51:07 -0400, a écrit :
> On Wed, Apr 25, 2007 at 02:34:36PM +0200, Samuel Thibault wrote:
> > Samuel Thibault, le Wed 25 Apr 2007 14:23:37 +0200, a écrit :
> > > Giuseppe Bilotta, le Wed 25 Apr 2007 14:15:33 +0200, a écrit :
> > > > gcc has a 'z' format string
> > > > extension that handles this (%zu turns out as the correct architecture
> > > > dependent size_t) ... can we rely on it?
> > >
> > > It's not an extension, it's described in susv3.
> > It's even in C99 actually.
> That's only a half-answer. The complete answer would be to point out
> whether one can rely on the feature for the compilers that are expected
> to be on the platforms which the code would be compiled on.
SunOS: it failed on my 5.8 (which is quite old), I don't have access to
any more recent version.
Windows will probably be a great problem too.
More information about the xorg