[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u"
From: |
François Revol |
Subject: |
Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u" |
Date: |
Thu, 29 Jan 2009 08:42:40 +0100 CET |
> Jamie Lokier wrote:
> > Anthony Liguori wrote:
> > > Consul wrote:
> > > >This patch suppresses a lot of mingw warnings like
> > > >qemu-img.c:288: warning: format '%I64u' expects type 'unsigned
> > > > int',
> > > >but argument 2 has type 'uint64_t'
> > >
> > > I'd rather see the warning fixed (by switching to PRIu64) than to
> > > have
> > > the warnings disabled.
> >
> > Since that's in code for Windows, I'd rather see mingw's GCC fixed
> > to recognise %I64u, since that's fine Windows code.
I suppose Windows doesn't #define the now standard PRI*N macros:
http://www.opengroup.org/onlinepubs/009695399/basedefs/inttypes.h.html
else you'd use PRIu64.
I won't blame it for not doing so, BeOS didn't have them either (but
hey, it was out before C99...).
François.
- [Qemu-devel] [PATCH] Silence half of warnings in MinGW, Consul, 2009/01/28
- Re: [Qemu-devel] [PATCH] Silence half of warnings in MinGW, Anthony Liguori, 2009/01/28
- [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u",
François Revol <=
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29
- [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u", Consul, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Jamie Lokier, 2009/01/29
- Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29
- [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u", Consul, 2009/01/29
- Re: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u", Anthony Liguori, 2009/01/29