From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Uu2-0008GR-UV for Qemu-devel@nongnu.org; Thu, 03 Dec 2015 09:30:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4Utw-000473-VN for Qemu-devel@nongnu.org; Thu, 03 Dec 2015 09:30:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Utw-00046q-O9 for Qemu-devel@nongnu.org; Thu, 03 Dec 2015 09:30:28 -0500 From: Juan Quintela In-Reply-To: (Peter Maydell's message of "Thu, 3 Dec 2015 14:15:52 +0000") References: <93259ECD-066A-413E-B647-2BB240DBF7EC@livius.net> <2E7B730D-C409-4800-9BEC-8E302812C7E8@livius.net> <54778506.5060200@weilnetz.de> <547820C8.3060805@weilnetz.de> <5658AC21.2000805@weilnetz.de> <87fuzpnhax.fsf@emacs.mitica> Date: Thu, 03 Dec 2015 15:30:16 +0100 Message-ID: <874mfzli4n.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] MinGW build Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Stefan Weil , QEMU Developers , Liviu Ionescu Peter Maydell wrote: > On 3 December 2015 at 11:58, Peter Maydell wro= te: >> On 29 November 2015 at 12:03, Juan Quintela wrote: >>> Peter Maydell wrote: >>>> Yes, I've reported it to them, and I agree we don't need to fix >>>> this for 2.5. (There are other warnings with this mingw compiler >>>> anyway.) >>> >>> For my compiler (F23 cross-compiler) and a fairly large configuration (= *) >>> this is the only warning. >> >> The others I see are: >> >> CC qga/commands.o >> In file included from >> /home/petmay01/linaro/mingw64/lib/glib-2.0/include/glibconfig.h:9:0, >> from >> /home/petmay01/linaro/mingw64/include/glib-2.0/glib/gtypes.h:34, >> from >> /home/petmay01/linaro/mingw64/include/glib-2.0/glib/galloca.h:34, >> from /home/petmay01/linaro/mingw64/include/glib-2.0/gli= b.h:32, >> from /home/petmay01/linaro/qemu-for-merges/qga/commands= .c:13: >> /home/petmay01/linaro/qemu-for-merges/qga/commands.c: In function >> =E2=80=98qmp_guest_exec_status=E2=80=99: >> /home/petmay01/linaro/mingw64/include/glib-2.0/glib/gmacros.h:162:53: >> error: typedef =E2=80=98_GStaticAssertCompileTimeAssertion_0=E2=80=99 lo= cally defined >> but not used [-Werror=3Dunused-local-typedefs] >> #define G_STATIC_ASSERT(expr) typedef char G_PASTE >> (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] >> ^ >> /home/petmay01/linaro/mingw64/include/glib-2.0/glib/gmacros.h:159:47: >> note: in definition of macro =E2=80=98G_PASTE_ARGS=E2=80=99 >> #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2 >> ^ >> /home/petmay01/linaro/mingw64/include/glib-2.0/glib/gmacros.h:162:44: >> note: in expansion of macro =E2=80=98G_PASTE=E2=80=99 >> #define G_STATIC_ASSERT(expr) typedef char G_PASTE >> (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] >> ^ >> /home/petmay01/linaro/mingw64/include/glib-2.0/glib/gatomic.h:79:5: >> note: in expansion of macro =E2=80=98G_STATIC_ASSERT=E2=80=99 >> G_STATIC_ASSERT (sizeof *(atomic) =3D=3D sizeof (gint)); = \ >> ^ >> /home/petmay01/linaro/qemu-for-merges/qga/commands.c:157:21: note: in >> expansion of macro =E2=80=98g_atomic_int_get=E2=80=99 >> bool finished =3D g_atomic_int_get(&gei->finished); >> ^ > > It looks like these were fixed in glib upstream: > https://git.gnome.org/browse/glib/commit/?id=3D0ea7abaed5 > (I'm using glib 2.34.3-1, which doesn't have the fix.) > > thanks Yeap, my glib lib is 2.46.1. mingw32-glib2-2.46.1-1.fc23.noarch #livinginthebleedingedge O:-) Thanks, Juan.