From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuFl3-0004rg-As for Qemu-devel@nongnu.org; Fri, 28 Nov 2014 02:14:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuFkx-0006VI-8K for Qemu-devel@nongnu.org; Fri, 28 Nov 2014 02:14:25 -0500 Received: from mail-r83.rz.uni-mannheim.de ([134.155.96.83]:56428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuFkx-0006Uy-1O for Qemu-devel@nongnu.org; Fri, 28 Nov 2014 02:14:19 -0500 Message-ID: <547820C8.3060805@weilnetz.de> Date: Fri, 28 Nov 2014 08:14:16 +0100 From: Stefan Weil MIME-Version: 1.0 References: <93259ECD-066A-413E-B647-2BB240DBF7EC@livius.net> <2E7B730D-C409-4800-9BEC-8E302812C7E8@livius.net> <54778506.5060200@weilnetz.de> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] MinGW build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Liviu Ionescu , QEMU Developers Am 27.11.2014 um 21:18 schrieb Peter Maydell: > On 27 November 2014 at 20:09, Stefan Weil wrote: >> *nearly means that there are still warnings for format strings in C++ >> code. >=20 > Hmm, do we still have these with the libvixl version we have > now? If so, could you forward me a copy of them and I'll see > if I can persuade upstream to fix them... >=20 > thanks > -- PMM >=20 The libvixl code is correct, but the C++ compiler would need to be fixed. Here are some examples: disas/libvixl/a64/disasm-a64.cc:1340:57: warning: unknown conversion type character =E2=80=98l=E2=80=99 in format [-Wformat] disas/libvixl/a64/disasm-a64.cc:1340:57: warning: too many arguments for format [-Wformat-extra-args] disas/libvixl/a64/disasm-a64.cc:1492:42: warning: unknown conversion type character =E2=80=98l=E2=80=99 in format [-Wformat] That code uses PRIx64, so the format specifier is %llx which is correct. Obviously the C++ compiler ignores that QEMU uses ANSI format specifiers (compiler option -D__USE_MINGW_ANSI_STDIO=3D1) instead of the MS specific ones. A simple workaround for QEMU would just suppress -Wformat and -Wformat-extra-args for C++ code. Regards Stefan