qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] MinGW build


From: Peter Maydell
Subject: Re: [Qemu-devel] MinGW build
Date: Thu, 3 Dec 2015 11:58:18 +0000

On 29 November 2015 at 12:03, Juan Quintela <address@hidden> wrote:
> Peter Maydell <address@hidden> 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/glib.h:32,
                 from /home/petmay01/linaro/qemu-for-merges/qga/commands.c:13:
/home/petmay01/linaro/qemu-for-merges/qga/commands.c: In function
‘qmp_guest_exec_status’:
/home/petmay01/linaro/mingw64/include/glib-2.0/glib/gmacros.h:162:53:
error: typedef ‘_GStaticAssertCompileTimeAssertion_0’ locally defined
but not used [-Werror=unused-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 ‘G_PASTE_ARGS’
 #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 ‘G_PASTE’
 #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 ‘G_STATIC_ASSERT’
     G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint));                     \
     ^
/home/petmay01/linaro/qemu-for-merges/qga/commands.c:157:21: note: in
expansion of macro ‘g_atomic_int_get’
     bool finished = g_atomic_int_get(&gei->finished);
                     ^

(and similar others in this file).

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]