From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkxQ-0007Ak-4G for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:32:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZkxN-0005vY-PO for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:32:35 -0400 Message-ID: <4E034E79.5050901@mail.berlios.de> Date: Thu, 23 Jun 2011 16:32:25 +0200 From: Stefan Weil MIME-Version: 1.0 References: <4E02F63E.3010908@web.de> <20110623133508.GF12698@stefanha-thinkpad.localdomain> In-Reply-To: <20110623133508.GF12698@stefanha-thinkpad.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] Avoid double definitions of PRI*64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-trivial , Jan Kiszka , qemu-devel Am 23.06.2011 15:35, schrieb Stefan Hajnoczi: > On Thu, Jun 23, 2011 at 10:15:58AM +0200, Jan Kiszka wrote: >> From: Jan Kiszka >> >> Recent mingw32 provide those defines. ... and all of those defines are wrong, because QEMU does not use MS format specifiers. http://patchwork.ozlabs.org/patch/74276/ tried to fix this. My preferred solution is removing those PRI*64 from qemu-common.h, because not only recent mingw32 versions provide the (wrong) definitions, but even the Debian version provides them (which is really old, but I use it for my regression tests). The wrong definitions do not allow using -Wformat for mingw32 builds, but they work because (most?) relevant mingw32 functions accept both MS and standard format specifiers. Adding the correct definitions (to qemu-os-win32.h, not to qemu-common.h) would be another solution as long as mingw32 does not handle __USE_MINGW_ANSI_STDIO correctly. >> >> Signed-off-by: Jan Kiszka >> --- >> qemu-common.h | 3 +++ >> 1 files changed, 3 insertions(+), 0 deletions(-) > > It's never too late to implement C99! > > Thanks, applied to the trivial patches tree: > http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches > > Stefan Stefan, the patch won't harm, but it's also unnecessary. So it's up to you whether you remove it from your queue, modify it as I suggested above or apply it as it is. Stefan