From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSRXI-0002Ga-IY for qemu-devel@nongnu.org; Thu, 29 Jan 2009 02:42:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSRXG-0002Df-5o for qemu-devel@nongnu.org; Thu, 29 Jan 2009 02:42:03 -0500 Received: from [199.232.76.173] (port=42941 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSRXF-0002DQ-Vy for qemu-devel@nongnu.org; Thu, 29 Jan 2009 02:42:02 -0500 Received: from mx20.gnu.org ([199.232.41.8]:39831) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSRXF-0006YH-EO for qemu-devel@nongnu.org; Thu, 29 Jan 2009 02:42:01 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSRXD-0003xh-O1 for qemu-devel@nongnu.org; Thu, 29 Jan 2009 02:42:00 -0500 Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id 9DE07E0815B for ; Thu, 29 Jan 2009 08:41:55 +0100 (CET) Received: from laptop (vaf26-2-82-244-111-82.fbx.proxad.net [82.244.111.82]) by smtp6-g21.free.fr (Postfix) with ESMTP id A9323E08135 for ; Thu, 29 Jan 2009 08:41:52 +0100 (CET) In-Reply-To: <20090129062812.GA2524@shareable.org> Subject: Re: [Qemu-devel] Mingw GCC not recognising printf format "%I64u" From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Thu, 29 Jan 2009 08:42:40 +0100 CET Message-Id: <1987955410-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > 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=5Ft' > > > > > > 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=C3=A7ois.