qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] w64: Fix compiler warning [-Wformat]


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] w64: Fix compiler warning [-Wformat]
Date: Sat, 11 Aug 2012 21:15:30 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

Am 11.08.2012 16:42, schrieb Blue Swirl:
On Fri, Aug 10, 2012 at 7:45 PM, Stefan Weil <address@hidden> wrote:
Glib2 uses __printf__ in macro G_GNUC_PRINTF for printf like
functions. For MinGW, we want __gnu_printf__ because we use
POSIX format specifiers instead of the MS format specifiers.
I get these warnings from glib:
   CC    trace/control.o
In file included from
/usr/local/i686-mingw32msvc/include/glib-2.0/glib/gthread.h:34,
                  from
/usr/local/i686-mingw32msvc/include/glib-2.0/glib/gasyncqueue.h:34,
                  from /usr/local/i686-mingw32msvc/include/glib-2.0/glib.h:34,
                  from /src/qemu/qemu-common.h:40,
                  from /src/qemu/trace/control.h:13,
                  from /src/qemu/trace/default.c:10:
/usr/local/i686-mingw32msvc/include/glib-2.0/glib/gerror.h:46:
warning: '__gnu_printf__' is an unrecognized format function type
/usr/local/i686-mingw32msvc/include/glib-2.0/glib/gerror.h:70:
warning: '__gnu_printf__' is an unrecognized format function type
/usr/local/i686-mingw32msvc/include/glib-2.0/glib/gerror.h:88:
warning: '__gnu_printf__' is an unrecognized format function type
/usr/local/i686-mingw32msvc/include/glib-2.0/glib/gerror.h:94:
warning: '__gnu_printf__' is an unrecognized format function type

Oh, sorry, I forgot that older versions of gcc (before 4.4)
don't support __gnu_printf__.

I'll have to modify my patch...

Regards,

Stefan W.




reply via email to

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