[PATCH] Suppress a warning about mismatched parameter in format string (expected long int, provided unsigned int).

Daniel Stone daniel at fooishbar.org
Wed Apr 25 06:23:38 PDT 2007


On Wed, Apr 25, 2007 at 08:51:07AM -0400, Thomas Dickey wrote:
> 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.
> 
> (curious if anyone's going to provide that information)

Well, gcc can deal with it, so I guess the only ones left are Sun's
compiler (which should), and OpenBSD still use gcc 2.95 for VAX and
m68k, but off the top of my head that doesn't support named initialisers
anyway.

Aside from that, it's only really IBM (Dan Nicholson, though he hasn't
been around of late) and SCO (Kean Johnson) that I know of who are still
building on the more obscure platforms.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070425/2951d7ac/attachment.pgp>


More information about the xorg mailing list