Am 11.08.2012 16:42, schrieb Blue Swirl:
On Fri, Aug 10, 2012 at 7:45 PM, Stefan Weil <s...@weilnetz.de> 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